Bug 1626814 - Close peer connections when test_peerConnection_nonDefaultRate.html is finished. r=bwc

Differential Revision: https://phabricator.services.mozilla.com/D70200

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Michael Froman 2020-04-08 15:07:22 +00:00
Родитель bfe6607326
Коммит d7147ca5b6
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -185,6 +185,12 @@
mustThrowWith("Connect stream with graph of different sample rate", "NotSupportedError", () => {
let source_non_default_rate = nonDefault_ctx.createMediaStreamSource(remoteStream);
});
// Close peer connections to make sure we don't get error:
// "logged result after SimpleTest.finish(): pc1 addIceCandidate success"
// See Bug 1626814.
pc1.close();
pc2.close();
})
</script>
</pre>