diff options
| author | Jakob Unterwurzacher | 2017-03-05 13:39:25 +0100 | 
|---|---|---|
| committer | Jakob Unterwurzacher | 2017-03-05 13:39:25 +0100 | 
| commit | b2f154a9a908e6ec097de90c04ce45118adc76de (patch) | |
| tree | 65f6ee0810df685353a5d67c71dad199e97a027f /tests | |
| parent | 6465fa42a695160f2ce1f0c3ace3799f1bbf6227 (diff) | |
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.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/example_filesystems/example_test_helpers.go | 3 | 
1 files changed, 2 insertions, 1 deletions
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 {  | 
