X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Fphantom%2Frun-jasmine.js;h=e9bf784f41777c5168695a1f73e8bf72ab7d9b7a;hb=443fb8aca09c888a0d119f46903b29105d220dd6;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..e9bf784 100644 --- a/test/phantom/run-jasmine.js +++ b/test/phantom/run-jasmine.js @@ -46,7 +46,11 @@ 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