From 624962b1067190855ec6c65669a2ee9fa4410428 Mon Sep 17 00:00:00 2001 From: Kegan Myers Date: Wed, 15 Apr 2020 01:21:55 -0500 Subject: [PATCH] add status log to integration test script --- integration.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/integration.js b/integration.js index 1dc8cfd..d231c81 100644 --- a/integration.js +++ b/integration.js @@ -36,8 +36,15 @@ const infoHash = '(m.%5bO%83i%85S(3j%c1%26%3a%e0*z%60%d5'; 'expected every response entry to resemble ip:port', ); }); -})().catch((e) => { - console.log(e); - process.exit(1); -}); +})().catch( + () => { + console.log('ok!'); + process.exit(0); + }, + (e) => { + console.log('error!'); + console.log(e); + process.exit(1); + }, +);