mirror of
https://github.com/livekit/livekit.git
synced 2026-08-29 09:49:24 +00:00
Wait for answer (#957)
Maybe this is what is causing test flakiness in GH CI. Let's see.
This commit is contained in:
@@ -244,7 +244,7 @@ func TestFirstAnswerMissedDuringICERestart(t *testing.T) {
|
||||
|
||||
transportA.Negotiate(true)
|
||||
require.Eventually(t, func() bool {
|
||||
return transportB.pc.SignalingState() == webrtc.SignalingStateStable
|
||||
return transportB.pc.SignalingState() == webrtc.SignalingStateStable && firstAnswerReceived.Load()
|
||||
}, time.Second, 10*time.Millisecond, "transportB signaling state did not go to stable")
|
||||
|
||||
// set offer/answer with restart ICE, will negotiate twice,
|
||||
|
||||
Reference in New Issue
Block a user