diff options
author | Jakob Unterwurzacher | 2016-07-11 20:31:36 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2016-07-11 20:41:16 +0200 |
commit | 1c54fcd04bbf274dd5d4300e433bdcb1bb32e1ce (patch) | |
tree | db467866f9435cb493f1ee321f54b37032aec7a3 /tests/matrix/matrix_test.go | |
parent | 621cbad5e139a0bdbfde598d3c8ce82b0d43af66 (diff) |
tests: use unmount wrapper in ResetTmpDir
This should make it work on OSX.
Also, split unmount into two functions. Depending on what you
want,
* UnmountErr returns the resulting error
* UnmountPanic panics if the error was not nil
Diffstat (limited to 'tests/matrix/matrix_test.go')
-rw-r--r-- | tests/matrix/matrix_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/matrix/matrix_test.go b/tests/matrix/matrix_test.go index b73a0cf..2bd5b9f 100644 --- a/tests/matrix/matrix_test.go +++ b/tests/matrix/matrix_test.go @@ -45,7 +45,7 @@ func TestMain(m *testing.M) { opts = append(opts, fmt.Sprintf("-plaintextnames=%v", plaintextnames)) test_helpers.MountOrExit(test_helpers.DefaultCipherDir, test_helpers.DefaultPlainDir, opts...) r := m.Run() - test_helpers.Unmount(test_helpers.DefaultPlainDir) + test_helpers.UnmountPanic(test_helpers.DefaultPlainDir) if r != 0 { os.Exit(r) } |