From 96f95c59e1250d27bab0b9ad0fe7d779e7ec3309 Mon Sep 17 00:00:00 2001 From: Jan Kunzmann Date: Fri, 27 Sep 2024 18:56:48 +0200 Subject: [PATCH] fix broken variable reference and insufficient assertion --- test/pg.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/pg.js b/test/pg.js index 9617786..884d220 100644 --- a/test/pg.js +++ b/test/pg.js @@ -92,11 +92,11 @@ t.test('PostgreSQL backend', skip, async t => { const signal = ac.signal; const promise4 = minion .result(id, {interval: 10, signal}) - .then(value => (failed = value)) + .then(value => (finished = value)) .catch(reason => (failed = reason)); setTimeout(() => ac.abort(), 250); await promise4; - t.same(finished, undefined); + t.strictSame(finished, undefined); t.same(failed.name, 'AbortError'); finished = undefined; @@ -105,10 +105,10 @@ t.test('PostgreSQL backend', skip, async t => { t.same(await job4.remove(), true); const promise5 = minion .result(id, {interval: 10, signal}) - .then(value => (failed = value)) + .then(value => (finished = value)) .catch(reason => (failed = reason)); await promise5; - t.same(finished, null); + t.strictSame(finished, null); t.same(failed, undefined); await worker.unregister();