fix(testrunner): fix bad test counter (#3947)

This commit is contained in:
Andrey Lushnikov 2019-02-07 13:26:35 -08:00 committed by GitHub
parent addd7f4c6a
commit 9216056d12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,6 +42,7 @@ class Reporter {
} }
_onStarted(runnableTests) { _onStarted(runnableTests) {
this._testCounter = 0;
this._timestamp = Date.now(); this._timestamp = Date.now();
const allTests = this._runner.tests(); const allTests = this._runner.tests();
if (allTests.length === runnableTests.length) if (allTests.length === runnableTests.length)
@ -180,7 +181,6 @@ class Reporter {
_onTestStarted(test, workerId) { _onTestStarted(test, workerId) {
this._workersState.set(workerId, {test, isRunning: true}); this._workersState.set(workerId, {test, isRunning: true});
this._testCounter = 0;
} }
_onTestFinished(test, workerId) { _onTestFinished(test, workerId) {