X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Fphantom%2Frun-jasmine.js;h=b3702d4e2786c3a5c3dbec26f7c6fa4f24674dd5;hb=5a126c522666307f9dffd7835c70fe1889d276cc;hp=ef0577a5f638bcd1e9c6bdbf1682490dc41d3ef1;hpb=c13288e68f121994577e94010c3cc332a1fb0908;p=mkws-moved-to-github.git diff --git a/test/phantom/run-jasmine.js b/test/phantom/run-jasmine.js index ef0577a..b3702d4 100644 --- a/test/phantom/run-jasmine.js +++ b/test/phantom/run-jasmine.js @@ -46,7 +46,13 @@ function wait_for_jasmine(checkFx, readyFx, failFx, timeout) { clearInterval(interval); result.time = (new Date().getTime() - start); result.failed ? failFx(result) : readyFx(result); - phantom.exit(result.failed == 0 ? 0 : 2); + + // See: https://github.com/ariya/phantomjs/issues/12697 + // phantomjs 1.9.8 + page.close(); + setTimeout(function () { + phantom.exit(result.failed == 0 ? 0 : 2); + }, 0); } // timeout