Skip to content

Commit 9cab2ff

Browse files
committed
test: fix flaky test
1 parent bde4261 commit 9cab2ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/core.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -681,11 +681,11 @@ describe('core', () => {
681681
test('abort signal is transmittable through pipe', async () => {
682682
const ac = new AbortController()
683683
const { signal } = ac
684-
const p1 = $({ signal })`echo test`
684+
const p1 = $({ signal, nothrow: true })`echo test`
685685
const p2 = p1.pipe`sleep 999`
686+
setTimeout(ac.abort, 50)
686687

687688
try {
688-
ac.abort()
689689
await p2
690690
} catch ({ message }) {
691691
assert.match(message, /The operation was aborted/)

0 commit comments

Comments
 (0)