Skip to content

Commit

Permalink
test: fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Dec 15, 2024
1 parent 30b3327 commit d4446ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/core.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -681,11 +681,11 @@ describe('core', () => {
test('abort signal is transmittable through pipe', async () => {
const ac = new AbortController()
const { signal } = ac
const p1 = $({ signal })`echo test`
const p1 = $({ signal, nothrow: true })`echo test`
const p2 = p1.pipe`sleep 999`
setTimeout(ac.abort, 50)

try {
ac.abort()
await p2
} catch ({ message }) {
assert.match(message, /The operation was aborted/)
Expand Down

0 comments on commit d4446ec

Please sign in to comment.