Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Commit

Permalink
refactor: remove hack about handling of 'testResult' event several times
Browse files Browse the repository at this point in the history
gemini does not trigger 'testResult' event several times any more since #529
  • Loading branch information
eGavr committed Oct 20, 2016
1 parent 4753c86 commit 69d5ec7
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/reporters/html/view-model.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,6 @@ module.exports = class ViewModel {
const stateInBrowser = node.browsers[existing];
const retry = stateInBrowser.result;

// Hack to avoid situations when `testResult` event is emitted several times for a state, for example,
// when a state passed, but was retried because of a failure of another state in this suite
if (retry.success && testResult.success) {
return;
}

stateInBrowser.retries.push(retry);
stateInBrowser.result = testResult;
}
Expand Down

0 comments on commit 69d5ec7

Please sign in to comment.