hopefully more stable tests (#1665)

* hopefully more stable tests

* do eventual checks as some callbacks happen in go routines.

Needs a bit more work to ensure that some conditions do not happen.
But, with goroutines, the amount of wait is always tricky.``
This commit is contained in:
Raja Subramanian
2023-04-28 17:02:31 +05:30
committed by GitHub
parent 50ab72a5f8
commit 1148d38978
2 changed files with 21 additions and 8 deletions
+1 -1
View File
@@ -678,7 +678,7 @@ func TestRoomUpdate(t *testing.T) {
// p1 should have received an update
time.Sleep(2 * defaultDelay)
require.Equal(t, 1, p1.SendRoomUpdateCallCount())
require.LessOrEqual(t, 1, p1.SendRoomUpdateCallCount())
require.EqualValues(t, 2, p1.SendRoomUpdateArgsForCall(p1.SendRoomUpdateCallCount()-1).NumParticipants)
})