chore(testrunner): sort workers numerically when terminating (#3782)

This commit is contained in:
Andrey Lushnikov 2019-01-15 16:40:58 -08:00 committed by GitHub
parent 489be90c75
commit bea26a7f58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,7 @@ class Reporter {
} }
console.log('WORKERS STATE'); console.log('WORKERS STATE');
const workerIds = Array.from(this._workersState.keys()); const workerIds = Array.from(this._workersState.keys());
workerIds.sort(); workerIds.sort((a, b) => a - b);
for (const workerId of workerIds) { for (const workerId of workerIds) {
const {isRunning, test} = this._workersState.get(workerId); const {isRunning, test} = this._workersState.get(workerId);
let description = ''; let description = '';