From 350367d3991a3063474834108dda1ee4fdebaf52 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 8 Nov 2016 16:55:21 +0100 Subject: [PATCH] fix inverted condition --- testlib/talertest.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testlib/talertest.ts b/testlib/talertest.ts index 16d8ec14e..d420da4a0 100644 --- a/testlib/talertest.ts +++ b/testlib/talertest.ts @@ -88,7 +88,7 @@ export async function run() { try { await p; - if (passed) { + if (!passed) { throw Error("test did not call 'pass'"); } console.log(`ok ${Number(i) + 1} ${lastMsg}`);