Skip to content

Commit

Permalink
Fix regressions introduced in web-platform-tests#13893
Browse files Browse the repository at this point in the history
  • Loading branch information
youennf committed Nov 4, 2018
1 parent b1e0431 commit 3f55014
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webrtc/RTCPeerConnection-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ function assert_session_desc_not_similar(sessionDesc1, sessionDesc2) {

async function generateDataChannelOffer(pc) {
pc.createDataChannel('test');
const offer = pc.createOffer();
assert_equals(countApplicationLine(sdp), 1, 'Expect m=application line to be present in generated SDP');
const offer = await pc.createOffer();
assert_equals(countApplicationLine(offer.sdp), 1, 'Expect m=application line to be present in generated SDP');
return offer;
}

Expand Down Expand Up @@ -135,7 +135,7 @@ async function generateVideoReceiveOnlyOffer(pc)
async function generateAnswer(offer) {
const pc = new RTCPeerConnection();
await pc.setRemoteDescription(offer);
const answer = pc.createAnswer();
const answer = await pc.createAnswer();
pc.close();
return answer;
}
Expand Down

0 comments on commit 3f55014

Please sign in to comment.