summaryrefslogtreecommitdiff
path: root/tests/matrix/concurrency_test.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2021-06-26 18:58:29 +0200
committerJakob Unterwurzacher2021-06-26 18:58:29 +0200
commit446c3d7e931747cd833ae6211a3742cb9d02578b (patch)
tree99471b9519a9fb1ca772b249f483a585fdf6a10d /tests/matrix/concurrency_test.go
parent4fd95b718b9f7b022c1960711fc7dfe7b5350c15 (diff)
tests: matrix: show content detail on mismatch
Diffstat (limited to 'tests/matrix/concurrency_test.go')
-rw-r--r--tests/matrix/concurrency_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/matrix/concurrency_test.go b/tests/matrix/concurrency_test.go
index 24d4578..6a9b9aa 100644
--- a/tests/matrix/concurrency_test.go
+++ b/tests/matrix/concurrency_test.go
@@ -119,7 +119,8 @@ func TestConcurrentReadCreate(t *testing.T) {
}
buf := buf0[:n]
if bytes.Compare(buf, content) != 0 {
- log.Fatal("content mismatch")
+ // Calling t.Fatal() from a goroutine hangs the test so we use log.Fatal
+ log.Fatalf("%s: content mismatch: have=%q want=%q", t.Name(), string(buf), string(content))
}
f.Close()
}