summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2021-08-23 01:54:04 +0700
committerShulhan <ms@kilabit.info>2021-08-23 01:54:04 +0700
commit6465e073f836f534aaa845dfc68da96c192093fb (patch)
treed0b320fc07460a70189896e885c4732220fd6083
parenta049bbc175338d591873f73028e728ed480447d7 (diff)
downloadpakakeh.go-6465e073f836f534aaa845dfc68da96c192093fb.tar.xz
lib/memfs: fix the test due to unremoved node_save file on testdata
-rw-r--r--lib/memfs/node_test.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/memfs/node_test.go b/lib/memfs/node_test.go
index 29198055..eae7b9a7 100644
--- a/lib/memfs/node_test.go
+++ b/lib/memfs/node_test.go
@@ -84,7 +84,6 @@ func TestNode_Readdir(t *testing.T) {
"index.css",
"index.html",
"index.js",
- "node_save",
"plain",
}
@@ -128,6 +127,10 @@ func TestNode_Save(t *testing.T) {
t.Fatal(err)
}
+ t.Cleanup(func() {
+ _ = os.Remove(node.SysPath)
+ })
+
cases := []struct {
desc string
content []byte