Bug 1595429 [wpt PR 20192] - Wait 100ms for oniceconnectionstatechange event to have fired., a=testonly
authorjianjunz <jianjun.zhu@intel.com>
Mon, 25 Nov 2019 19:08:26 +0000
changeset 504489 848d69d717cf3976615afdf4a52bc23c5bc5a6b8
parent 504488 8e56b5283f57511a1229e8b5953c0dffbd3018d0
child 504490 842168bb708569386aec98007421a19b56f560eb
push id101897
push userwptsync@mozilla.com
push dateFri, 29 Nov 2019 11:10:32 +0000
treeherderautoland@47be1b3fdda6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1595429, 20192
milestone72.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1595429 [wpt PR 20192] - Wait 100ms for oniceconnectionstatechange event to have fired., a=testonly Automatic update from web-platform-tests Wait 100ms for oniceconnectionstatechange event to have fired. (#20192) -- wpt-commits: 06a93ba86b0e3ff912f6b095ec0931b4687c914c wpt-pr: 20192
testing/web-platform/tests/webrtc/RTCPeerConnection-iceConnectionState.https.html
--- a/testing/web-platform/tests/webrtc/RTCPeerConnection-iceConnectionState.https.html
+++ b/testing/web-platform/tests/webrtc/RTCPeerConnection-iceConnectionState.https.html
@@ -388,13 +388,13 @@ promise_test(async t => {
 
   stream.getTracks().forEach(track => pc1.addTrack(track, stream));
   exchangeIceCandidates(pc1, pc2);
   doSignalingHandshake(pc1, pc2);
   await listenToIceConnected(pc2);
 
   pc2.oniceconnectionstatechange = t.unreached_func();
   pc2.close();
-  await Promise.resolve();
   assert_true(pc2.iceConnectionState === 'closed');
+  await new Promise(r => t.step_timeout(r, 100));
 }, 'Closing a PeerConnection should not fire iceconnectionstatechange event');
 
 </script>