From d4446ecb6a865c40ff53b7d0b8467d47c3445f0c Mon Sep 17 00:00:00 2001 From: Anton Golub Date: Sun, 15 Dec 2024 23:14:37 +0300 Subject: [PATCH] test: fix flaky test --- test/core.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/core.test.js b/test/core.test.js index 605a8e3149..d9d16e425b 100644 --- a/test/core.test.js +++ b/test/core.test.js @@ -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/)