From b292f75bd852d015231d6072cedf720071a4b84a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Yves=20G=C3=A9rardy?= Date: Fri, 25 May 2018 18:38:31 +0200 Subject: [PATCH] [ospec] don't count succesful async test termination as a test success --- ospec/ospec.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ospec/ospec.js b/ospec/ospec.js index 6b7d72f1..60fe6d3f 100644 --- a/ospec/ospec.js +++ b/ospec/ospec.js @@ -138,10 +138,7 @@ else window.o = m() if (err instanceof Error) record(err.message, err, task.err) else record(String(err), null, task.err) } - if (timeout !== undefined) { - timeout = clearTimeout(timeout) - if (delay !== Infinity) record(null) - } + if (timeout !== undefined) timeout = clearTimeout(timeout) if (current === cursor) next() }