More syncapi tests (#2451)

* WIP tests for flakey create event

* Uncomment all database test
This commit is contained in:
kegsay 2022-05-11 13:44:32 +01:00 committed by GitHub
parent c15bfefd0d
commit 9599b3686e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 132 additions and 19 deletions

View file

@ -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()