aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorkegsay <kegan@matrix.org>2022-05-11 13:44:32 +0100
committerGitHub <noreply@github.com>2022-05-11 13:44:32 +0100
commit9599b3686e02356e48a537a820b075523252ac64 (patch)
treeb4005922b9a616cb92c7c478a27cc14ba585d217 /test
parentc15bfefd0dbbd9619c2606b59b784f2a7926ca20 (diff)
More syncapi tests (#2451)
* WIP tests for flakey create event * Uncomment all database test
Diffstat (limited to 'test')
-rw-r--r--test/event.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/event.go b/test/event.go
index b2e2805b..40cb8f0e 100644
--- a/test/event.go
+++ b/test/event.go
@@ -64,7 +64,8 @@ func Reversed(in []*gomatrixserverlib.HeaderedEvent) []*gomatrixserverlib.Header
func AssertEventIDsEqual(t *testing.T, gotEventIDs []string, wants []*gomatrixserverlib.HeaderedEvent) {
t.Helper()
if len(gotEventIDs) != len(wants) {
- t.Fatalf("length mismatch: got %d events, want %d", len(gotEventIDs), len(wants))
+ t.Errorf("length mismatch: got %d events, want %d", len(gotEventIDs), len(wants))
+ return
}
for i := range wants {
w := wants[i].EventID()