Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dubzzz committed Dec 22, 2022
1 parent 3fb3127 commit 14fb071
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ export class RunExecution<Ts> {

// Either 'too many skips' or 'interrupted' with flag interruptedAsFailure enabled
// The two cases are exclusive (the two cannot be true at the same time)
const failed = this.numSkips > maxSkips || (this.interrupted && this.interruptedAsFailure);
const considerInterruptedAsFailure = this.interruptedAsFailure || this.numSuccesses === 0;
const failed = this.numSkips > maxSkips || (this.interrupted && considerInterruptedAsFailure);

// -- Let's suppose: this.numSkips > maxSkips
// In the context of RunnerIterator we pull values from the stream
Expand Down

0 comments on commit 14fb071

Please sign in to comment.