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:
@@ -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)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user