Bug 1439991 - Fix complicated.netmonitor timeout on windows. r=Honza

When opening the netmonitor, some pending requests may still occur after the toolbox is opened.
So that we overflow the expected number of requests we except during page reload.

MozReview-Commit-ID: If9okZONF8V

--HG--
extra : rebase_source : f4ca4f80079cbe0ef0d980f5d4a6900d8499dec8
This commit is contained in:
Alexandre Poirot 2018-02-21 01:02:33 -08:00
Родитель a98d2b6e44
Коммит 6e7897e220
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -1032,7 +1032,7 @@ async _consoleOpenWithCachedMessagesTest() {
function maybeResolve() {
// Have all the requests finished yet?
if (payloadReady === expectedRequests && timingsUpdated === expectedRequests) {
if (payloadReady >= expectedRequests && timingsUpdated >= expectedRequests) {
// All requests are done - unsubscribe from events and resolve!
window.off(EVENTS.PAYLOAD_READY, onPayloadReady);
window.off(EVENTS.RECEIVED_EVENT_TIMINGS, onTimingsUpdated);