Commit ae23e54c authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Cleanup after tests

parent 82c419db
......@@ -8,8 +8,10 @@ import (
func TestCopyFile(t *testing.T) {
d1, err := ioutil.TempDir("", "go-fuse")
CheckSuccess(err)
defer os.RemoveAll(d1)
d2, err := ioutil.TempDir("", "go-fuse")
CheckSuccess(err)
defer os.RemoveAll(d2)
fs1 := NewLoopbackFileSystem(d1)
fs2 := NewLoopbackFileSystem(d2)
......
......@@ -98,7 +98,7 @@ func (me *testCase) Cleanup() {
fmt.Println("Unmounting.")
err := me.state.Unmount()
CheckSuccess(err)
os.Remove(me.tmpDir)
os.RemoveAll(me.tmpDir)
}
func (me *testCase) rootNode() *Inode {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment