From bea26a7f58c3c46912fbd6555fa8dcce27fd9274 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Tue, 15 Jan 2019 16:40:58 -0800 Subject: [PATCH] chore(testrunner): sort workers numerically when terminating (#3782) --- utils/testrunner/Reporter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/testrunner/Reporter.js b/utils/testrunner/Reporter.js index f38d498b0f1..3109765e018 100644 --- a/utils/testrunner/Reporter.js +++ b/utils/testrunner/Reporter.js @@ -47,7 +47,7 @@ class Reporter { } console.log('WORKERS STATE'); const workerIds = Array.from(this._workersState.keys()); - workerIds.sort(); + workerIds.sort((a, b) => a - b); for (const workerId of workerIds) { const {isRunning, test} = this._workersState.get(workerId); let description = '';