Test: pkg/task / Fix: failed test due to policy cache
This commit is contained in:
@@ -30,3 +30,10 @@ func TestCreatNestedFile(t *testing.T) {
|
||||
asserts.FileExists("test/direct.txt")
|
||||
}
|
||||
}
|
||||
|
||||
func TestIsEmpty(t *testing.T) {
|
||||
asserts := assert.New(t)
|
||||
|
||||
asserts.False(IsEmpty(""))
|
||||
asserts.False(IsEmpty("not_exist"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user