Skip to content

Commit

Permalink
assert_greater_than_equal
Browse files Browse the repository at this point in the history
  • Loading branch information
soareschen committed Nov 20, 2018
1 parent 83f5a9e commit 5dffb44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions webrtc/RTCDtlsTransport-getRemoteCertificates.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
.map(senderReceiver => senderReceiver.transport)
.filter(dtlsTransport => dtlsTransport); // filter null/undefined

assert_greater_than(dtlsTransports.length, 2, 'expect to find at least 2 RTCDtlsTransports');
assert_greater_than_equal(dtlsTransports.length, 2, 'expect to find at least 2 RTCDtlsTransports');

for (const dtlsTransport of dtlsTransports) {
validateConnectingDtlsTransport(dtlsTransport);
Expand Down Expand Up @@ -88,7 +88,7 @@
]
.filter(dtlsTransport => dtlsTransport); // filter null/undefined

assert_greater_than(dtlsTransports.length, 2, 'expect to find at least 2 RTCDtlsTransports');
assert_greater_than_equal(dtlsTransports.length, 2, 'expect to find at least 2 RTCDtlsTransports');

for (const dtlsTransport of dtlsTransports) {
validateConnectingDtlsTransport(dtlsTransport);
Expand Down
6 changes: 3 additions & 3 deletions webrtc/RTCIceTransport.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
.filter(dtlsTransport => dtlsTransport) // filter null/undefined
.map(dtlsTransport => dtlsTransport.iceTransport);

assert_greater_than(iceTransports.length, 2, 'expect to find at least 2 RTCIceTransports');
assert_greater_than_equal(iceTransports.length, 2, 'expect to find at least 2 RTCIceTransports');

await waitForConnectedState(pc1);
await waitForConnectedState(pc2);
Expand Down Expand Up @@ -129,7 +129,7 @@
.filter(dtlsTransport => dtlsTransport) // filter null/undefined
.map(dtlsTransport => dtlsTransport.iceTransport);

assert_greater_than(iceTransports.length, 2, 'expect to find at least 2 RTCIceTransports');
assert_greater_than_equal(iceTransports.length, 2, 'expect to find at least 2 RTCIceTransports');

await waitForConnectedState(pc1);
await waitForConnectedState(pc2);
Expand Down Expand Up @@ -158,7 +158,7 @@
.filter(dtlsTransport => dtlsTransport) // filter null/undefined
.map(dtlsTransport => dtlsTransport.iceTransport);

assert_greater_than(iceTransports.length, 1, 'expect to find at least 1 RTCIceTransports');
assert_greater_than_equal(iceTransports.length, 1, 'expect to find at least 1 RTCIceTransports');

for (const iceTransport of iceTransports) {
validateUnconnectedIceTransport(iceTransport);
Expand Down

0 comments on commit 5dffb44

Please sign in to comment.