Skip to content

Commit 990d8e2

Browse files
committed
Increase timeouts when testing TestRoomKeyIsCycledOnDeviceLogout as there's a lot that needs to happen
1 parent 4bd1444 commit 990d8e2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/room_keys_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ func TestRoomKeyIsCycledOnDeviceLogout(t *testing.T) {
8080
// which should trigger a new room key to be sent (on message send)
8181
csapiAlice2.MustDo(t, "POST", []string{"_matrix", "client", "v3", "logout"}, client.WithJSONBody(t, map[string]any{}))
8282

83-
// we don't know how long it will take for the device list update to be processed, so wait 1s
84-
time.Sleep(time.Second)
83+
// we don't know how long it will take for the device list update to be sent, delivered and processed, so wait 3s
84+
time.Sleep(3 * time.Second)
8585

8686
// now send another message from Alice, who should negotiate a new room key
8787
wantMsgBody = "Another Test Message"

0 commit comments

Comments
 (0)