From c4306b1731aed3626000a1477f8619d2c1e905c7 Mon Sep 17 00:00:00 2001 From: Raghu Simha Date: Mon, 23 Apr 2018 19:03:28 -0400 Subject: [PATCH 1/2] Delayed force-exit the gulp test process after Karma reports test completion --- build-system/tasks/runtime-test.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build-system/tasks/runtime-test.js b/build-system/tasks/runtime-test.js index 61231acdd31c..355f55f81ee9 100644 --- a/build-system/tasks/runtime-test.js +++ b/build-system/tasks/runtime-test.js @@ -371,7 +371,10 @@ function runTests() { log( red('ERROR:'), yellow('Karma test failed with exit code ' + exitCode)); - process.exitCode = exitCode; + // TODO(rsimha): Remove this after Karma / Sauce ticket is resolved. + setTimeout(() => { + process.exit(exitCode); + }, 5000); } resolver(); }).on('run_start', function() { From b6e525cacbeaf3854fea7126271d2c3fd25878ad Mon Sep 17 00:00:00 2001 From: Raghu Simha Date: Mon, 23 Apr 2018 19:38:28 -0400 Subject: [PATCH 2/2] Add issue --- build-system/tasks/runtime-test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-system/tasks/runtime-test.js b/build-system/tasks/runtime-test.js index 355f55f81ee9..02fa8ff3466f 100644 --- a/build-system/tasks/runtime-test.js +++ b/build-system/tasks/runtime-test.js @@ -371,7 +371,7 @@ function runTests() { log( red('ERROR:'), yellow('Karma test failed with exit code ' + exitCode)); - // TODO(rsimha): Remove this after Karma / Sauce ticket is resolved. + // TODO(rsimha, 14814): Remove after Karma / Sauce ticket is resolved. setTimeout(() => { process.exit(exitCode); }, 5000);