Bug 1762391: Loosen these comparisons; we have no guarantee that more than one packet has been sent. r=ng

Depends on D193131

Differential Revision: https://phabricator.services.mozilla.com/D193132
This commit is contained in:
Byron Campen 2023-11-09 04:12:05 +00:00
parent 658ce6bb99
commit a4a59fd615

View file

@ -1345,16 +1345,16 @@ function pedanticChecks(report) {
// bytesSent
ok(
stat.bytesSent > 1000,
`${stat.type}.bytesSent is a sane number (>1,000) for a short ` +
`${stat.kind} test. value=${stat.bytesSent}`
stat.bytesSent > 100,
`${stat.type}.bytesSent is a sane number (>100) if media is flowing. ` +
`value=${stat.bytesSent}`
);
// bytesReceived
ok(
stat.bytesReceived > 500,
`${stat.type}.bytesReceived is a sane number (>500) for a short ` +
`${stat.kind} test. value=${stat.bytesReceived}`
stat.bytesReceived > 100,
`${stat.type}.bytesReceived is a sane number (>100) if media is flowing. ` +
`value=${stat.bytesReceived}`
);
// lastPacketSentTimestamp