Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Paulo Gomes <[email protected]>
  • Loading branch information
pjbgf committed Jan 27, 2025
1 parent 8550cd6 commit 63708ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Test

on:
push:
branches: [ "master", "main" ]
pull_request:

permissions: {}
Expand Down
9 changes: 6 additions & 3 deletions test/basic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -493,8 +493,9 @@ func TestRename(t *testing.T) {
name: "file rename",
before: func(t *testing.T, fs billy.Filesystem) {
root := fsRoot(fs)
_, err := fs.Create(fs.Join(root, "foo"))
f, err := fs.Create(fs.Join(root, "foo"))
require.NoError(t, err)
require.NoError(t, f.Close())
},
from: "foo",
to: "bar",
Expand All @@ -504,10 +505,12 @@ func TestRename(t *testing.T) {
name: "dir rename",
before: func(t *testing.T, fs billy.Filesystem) {
root := fsRoot(fs)
_, err := fs.Create(fs.Join(root, "foo", "bar1"))
f, err := fs.Create(fs.Join(root, "foo", "bar1"))
require.NoError(t, err)
_, err = fs.Create(fs.Join(root, "foo", "bar2"))
require.NoError(t, f.Close())
f, err = fs.Create(fs.Join(root, "foo", "bar2"))
require.NoError(t, err)
require.NoError(t, f.Close())
},
from: "foo",
to: "bar",
Expand Down

0 comments on commit 63708ae

Please sign in to comment.