aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2022-05-12 10:11:46 +0100
committerKegan Dougal <kegan@matrix.org>2022-05-12 10:11:46 +0100
commit3437adf5970a11342c22089ec1a18f46d0708740 (patch)
tree65f634fe288875084e380e2e893fe52431d96b60
parent58af7f61b6c3719e15cb4088a343cd08b404f5be (diff)
Wait 100ms for events to be processed by syncapi
-rw-r--r--syncapi/syncapi_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/syncapi/syncapi_test.go b/syncapi/syncapi_test.go
index 7809cdab..d3d89839 100644
--- a/syncapi/syncapi_test.go
+++ b/syncapi/syncapi_test.go
@@ -199,7 +199,7 @@ func testSyncAPICreateRoomSyncEarly(t *testing.T, dbType test.DBType) {
AddPublicRoutes(base, &syncUserAPI{accounts: []userapi.Device{alice}}, &syncRoomserverAPI{rooms: []*test.Room{room}}, &syncKeyAPI{})
for i, msg := range msgs {
test.MustPublishMsgs(t, jsctx, msg)
- time.Sleep(50 * time.Millisecond)
+ time.Sleep(100 * time.Millisecond)
w := httptest.NewRecorder()
base.PublicClientAPIMux.ServeHTTP(w, test.NewRequest(t, "GET", "/_matrix/client/v3/sync", test.WithQueryParams(map[string]string{
"access_token": alice.AccessToken,