aboutsummaryrefslogtreecommitdiff
path: root/tests/matrix/matrix_test.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2019-02-17 17:13:20 +0100
committerJakob Unterwurzacher2019-02-17 17:13:20 +0100
commit179471b6486b2cb3e6e24eed1d9f86f2e880e334 (patch)
tree2a15b63aba21a7e86dd8382de55d722bd8ea7089 /tests/matrix/matrix_test.go
parent19cb6d046aac92f44722c17ba9a371b08ca0be6a (diff)
ParseHeader: print hexdump on error
Should help debugging https://github.com/rfjakob/gocryptfs/issues/363
Diffstat (limited to 'tests/matrix/matrix_test.go')
-rw-r--r--tests/matrix/matrix_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/matrix/matrix_test.go b/tests/matrix/matrix_test.go
index 33d2ab2..65dd691 100644
--- a/tests/matrix/matrix_test.go
+++ b/tests/matrix/matrix_test.go
@@ -98,13 +98,13 @@ func testWriteN(t *testing.T, fn string, n int) string {
}
d := make([]byte, n)
- written, err := file.Write(d)
- if err != nil || written != len(d) {
- t.Errorf("err=\"%s\", written=%d", err, written)
+ _, err := file.Write(d)
+ if err != nil {
+ t.Fatal(err)
}
err = file.Close()
if err != nil {
- t.Error(err)
+ t.Fatal(err)
}
test_helpers.VerifySize(t, test_helpers.DefaultPlainDir+"/"+fn, n)