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)
|
transportA.Negotiate(true)
|
||||||
require.Eventually(t, func() bool {
|
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")
|
}, time.Second, 10*time.Millisecond, "transportB signaling state did not go to stable")
|
||||||
|
|
||||||
// set offer/answer with restart ICE, will negotiate twice,
|
// set offer/answer with restart ICE, will negotiate twice,
|
||||||
|
|||||||
Reference in New Issue
Block a user