Test: pkg/task / Fix: failed test due to policy cache

This commit is contained in:
HFO4
2020-02-07 11:47:52 +08:00
parent fc5b7d42c8
commit 4c530a26a0
14 changed files with 309 additions and 57 deletions

View File

@@ -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"))
}