Skip to content

Commit

Permalink
Increase timeouts for GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
kegsay committed Nov 3, 2023
1 parent 3e033f8 commit ee93c25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/invite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,14 @@ func testCanDecryptMessagesAfterInviteButBeforeJoin(t *testing.T, clientTypeA, c
sentinelBody := "Sentinel"
waiter := bob.WaitUntilEventInRoom(t, roomID, sentinelBody)
alice.SendMessage(t, roomID, sentinelBody)
waiter.Wait(t, 2*time.Second)
waiter.Wait(t, 5*time.Second)

// Explicitly ask for a pagination, rather than assuming the SDK will return events
// earlier than the join by default. This is important because:
// - sync v2 (JS SDK) it depends on the timeline limit, which is 20 by default but we don't want to assume.
// - sliding sync (FFI) it won't return events before the join by default, relying on clients using the prev_batch token.
waiter = bob.WaitUntilEventInRoom(t, roomID, wantMsgBody)
bob.MustBackpaginate(t, roomID, 5) // number is arbitrary, just needs to be >=2
waiter.Wait(t, 2*time.Second)
waiter.Wait(t, 5*time.Second)
// time.Sleep(time.Hour)
}

0 comments on commit ee93c25

Please sign in to comment.