From 3166c7011c4861ee491f4d997ef67e5044432b5e Mon Sep 17 00:00:00 2001 From: victorbjelkholm Date: Tue, 25 Sep 2018 20:16:47 +0200 Subject: [PATCH] fix: windows takes 2 minutes to exit License: MIT Signed-off-by: Victor Bjelkholm --- src/test/browser.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/test/browser.js b/src/test/browser.js index 0bcf0a1d8..c34912367 100644 --- a/src/test/browser.js +++ b/src/test/browser.js @@ -7,13 +7,9 @@ const utils = require('../utils') function karma (config) { return new Promise((resolve, reject) => { - const server = new Server(config, (exitCode) => { - if (exitCode > 0) { - reject(new Error('Some tests are failing')) - } + const server = new Server(config) - resolve() - }) + server.once('exit', force => force(resolve)) server.start() })