diff options
author | Jakob Unterwurzacher | 2018-03-05 23:21:08 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2018-03-05 23:21:08 +0100 |
commit | 18d4159d18b370f82dafd1c7627a6eb1f386cdfb (patch) | |
tree | 6d838635655a851cd6862f29943da66d6002e7d3 /tests | |
parent | 1789a5ea5b5f358eee18f869fb06ca25b3fd7a21 (diff) |
macos: fix fd leak in reverse tests
Causes "Resource busy" unmount failures on macos
Diffstat (limited to 'tests')
-rw-r--r-- | tests/reverse/correctness_test.go | 1 |
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) |