summaryrefslogtreecommitdiff
path: root/tests/matrix/matrix_test.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2018-04-07 15:46:41 +0200
committerJakob Unterwurzacher2018-04-07 15:46:41 +0200
commit9d7392a5be7e21aaaf2fb02f19b421c29e304632 (patch)
tree24d2e83a7fdb3887ac2891c5e6bc2efcf63b0e7e /tests/matrix/matrix_test.go
parent22031d7e531985e9e94d694e74fb00da99de72a5 (diff)
tests: cli_test: fix fd leak
One fd leak found in TestMountBackground.
Diffstat (limited to 'tests/matrix/matrix_test.go')
-rw-r--r--tests/matrix/matrix_test.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/matrix/matrix_test.go b/tests/matrix/matrix_test.go
index bc964ae..f34c167 100644
--- a/tests/matrix/matrix_test.go
+++ b/tests/matrix/matrix_test.go
@@ -76,9 +76,7 @@ func TestMain(m *testing.M) {
r := m.Run()
after := test_helpers.ListFds()
if len(before) != len(after) {
- fmt.Printf("fd leak? before, after:\n")
- fmt.Printf("%v\n", before)
- fmt.Printf("%v\n", after)
+ fmt.Printf("fd leak? before, after:\n%v\n%v\n", before, after)
os.Exit(1)
}
test_helpers.UnmountPanic(test_helpers.DefaultPlainDir)