mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2024-06-04 23:12:29 +02:00
Attempt to fix flaky TestBackendServer_RoomDisinviteDifferentRooms.
This commit is contained in:
parent
b006903a56
commit
e895fe3aeb
|
@ -626,7 +626,8 @@ func TestBackendServer_RoomDisinviteDifferentRooms(t *testing.T) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
if _, err := client2.RunUntilHello(ctx); err != nil {
|
hello2, err := client2.RunUntilHello(ctx)
|
||||||
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -635,16 +636,14 @@ func TestBackendServer_RoomDisinviteDifferentRooms(t *testing.T) {
|
||||||
if _, err := client1.JoinRoom(ctx, roomId1); err != nil {
|
if _, err := client1.JoinRoom(ctx, roomId1); err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
if err := client1.RunUntilJoined(ctx, hello1.Hello); err != nil {
|
||||||
|
t.Error(err)
|
||||||
|
}
|
||||||
roomId2 := "test-room2"
|
roomId2 := "test-room2"
|
||||||
if _, err := client2.JoinRoom(ctx, roomId2); err != nil {
|
if _, err := client2.JoinRoom(ctx, roomId2); err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
if err := client2.RunUntilJoined(ctx, hello2.Hello); err != nil {
|
||||||
// Ignore "join" events.
|
|
||||||
if err := client1.DrainMessages(ctx); err != nil {
|
|
||||||
t.Error(err)
|
|
||||||
}
|
|
||||||
if err := client2.DrainMessages(ctx); err != nil {
|
|
||||||
t.Error(err)
|
t.Error(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -702,6 +701,7 @@ func TestBackendServer_RoomDisinviteDifferentRooms(t *testing.T) {
|
||||||
UserIds: []string{
|
UserIds: []string{
|
||||||
testDefaultUserId,
|
testDefaultUserId,
|
||||||
},
|
},
|
||||||
|
Properties: (*json.RawMessage)(&testRoomProperties),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue