Skip to content

Commit a274a48

Browse files
committed
Making test-stream tests more stable (increasing timeout).
1 parent ce61764 commit a274a48

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

graal-nodejs/test/parallel/test-stream-filter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const { setTimeout } = require('timers/promises');
5252
let calls = 0;
5353
const stream = Readable.from([1, 2, 3, 4]).filter(async (_, { signal }) => {
5454
calls++;
55-
await setTimeout(100, { signal });
55+
await setTimeout(2000, { signal });
5656
}, { signal: ac.signal, concurrency: 2 });
5757
// pump
5858
assert.rejects(async () => {

graal-nodejs/test/parallel/test-stream-map.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const { setTimeout } = require('timers/promises');
5151
let calls = 0;
5252
const stream = Readable.from([1, 2, 3, 4, 5]).map(async (_, { signal }) => {
5353
calls++;
54-
await setTimeout(100, { signal });
54+
await setTimeout(2000, { signal });
5555
}, { signal: ac.signal, concurrency: 2 });
5656
// pump
5757
assert.rejects(async () => {

0 commit comments

Comments
 (0)