mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-07-30 21:12:45 +00:00
More syncapi tests (#2451)
* WIP tests for flakey create event * Uncomment all database test
This commit is contained in:
parent
c15bfefd0d
commit
9599b3686e
2 changed files with 132 additions and 19 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue