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); + }, +);