Skip to content
This repository was archived by the owner on Mar 25, 2024. It is now read-only.

Commit 3ebe41f

Browse files
committed
Merge pull request #21 from imikushin/fix-test
fix trash_test.go
2 parents 121a353 + cc5958c commit 3ebe41f

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

trash_test.go

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,10 @@ func TestParseDir(t *testing.T) {
4848
func TestListPackages(t *testing.T) {
4949
assert := require.New(t)
5050
os.Chdir("../../..")
51-
for p := range listPackages("github.com/rancher/trash") {
52-
logrus.Debug(p)
53-
assert.Equal(3, len(p))
54-
assert.Contains(p, "github.com/rancher/trash")
55-
assert.Contains(p, "github.com/rancher/trash/util")
56-
assert.Contains(p, "github.com/rancher/trash/conf")
57-
}
51+
p := listPackages("github.com/rancher/trash")
52+
logrus.Debug(p)
53+
assert.Equal(3, len(p))
54+
assert.Contains(p, "github.com/rancher/trash")
55+
assert.Contains(p, "github.com/rancher/trash/util")
56+
assert.Contains(p, "github.com/rancher/trash/conf")
5857
}

0 commit comments

Comments
 (0)