Skip to content

Commit e2d9dcd

Browse files
committed
quic: Fix again blob test to new behaviour
1 parent 69600ce commit e2d9dcd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-blob.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ assert.throws(() => new Blob({}), {
368368
assert.strictEqual(value.byteLength, 30000);
369369
assert(!done);
370370
setTimeout(common.mustCall(() => {
371-
assert.strictEqual(stream[kState].controller.desiredSize, 0);
371+
assert.ok(stream[kState].controller.desiredSize <= 0);
372372
}), 0);
373373
})().then(common.mustCall());
374374

@@ -381,7 +381,7 @@ assert.throws(() => new Blob({}), {
381381
assert.strictEqual(value.byteLength, 2);
382382
assert(!done);
383383
setTimeout(common.mustCall(() => {
384-
assert.strictEqual(stream[kState].controller.desiredSize, -29998);
384+
assert.ok(stream[kState].controller.desiredSize <= -29998);
385385
}), 0);
386386
})().then(common.mustCall());
387387

0 commit comments

Comments
 (0)