aboutsummaryrefslogtreecommitdiff
path: root/tests/reverse/correctness_test.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2018-03-05 23:21:08 +0100
committerJakob Unterwurzacher2018-03-05 23:21:08 +0100
commit18d4159d18b370f82dafd1c7627a6eb1f386cdfb (patch)
tree6d838635655a851cd6862f29943da66d6002e7d3 /tests/reverse/correctness_test.go
parent1789a5ea5b5f358eee18f869fb06ca25b3fd7a21 (diff)
macos: fix fd leak in reverse tests
Causes "Resource busy" unmount failures on macos
Diffstat (limited to 'tests/reverse/correctness_test.go')
-rw-r--r--tests/reverse/correctness_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/reverse/correctness_test.go b/tests/reverse/correctness_test.go
index 214c747..34b32ea 100644
--- a/tests/reverse/correctness_test.go
+++ b/tests/reverse/correctness_test.go
@@ -153,6 +153,7 @@ func TestAccess(t *testing.T) {
if err != nil {
t.Fatal(err)
}
+ defer f.Close()
names, err := f.Readdirnames(0)
if err != nil {
t.Fatal(err)