From b2f154a9a908e6ec097de90c04ce45118adc76de Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 5 Mar 2017 13:39:25 +0100 Subject: [PATCH] tests: stop calling t.Fatal from example_test_helpers Calling t.Fatal immeadiately aborts the test, which means the filesystem will not get unmounted, which means test.bash will hang. --- tests/example_filesystems/example_test_helpers.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/example_filesystems/example_test_helpers.go b/tests/example_filesystems/example_test_helpers.go index d89b35f..672b668 100644 --- a/tests/example_filesystems/example_test_helpers.go +++ b/tests/example_filesystems/example_test_helpers.go @@ -68,7 +68,8 @@ func checkExampleFSrw(t *testing.T, dir string, rw bool) { "xxxxxxxxxxxxxxxxxxxxxxxx" contentBytes, err := ioutil.ReadFile(filepath.Join(dir, longname)) if err != nil { - t.Fatal(err) + t.Error(err) + return } content := string(contentBytes) if content != statusTxtContent {