Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
benzekrimaha committed Jun 18, 2024
1 parent 0db6430 commit 6f04833
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/CircuitBreaker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,17 @@ export class CircuitBreaker extends EventEmitter {
break;
case BreakerState.ErrorProm:
this._aggregateState = BreakerState.ErrorProm;
console.log('ErrorProm', this._aggregateState);

Check failure on line 93 in src/CircuitBreaker.ts

View workflow job for this annotation

GitHub Actions / test

Unexpected console statement
break;
default:
break;
}
} else {
this._aggregateState = BreakerState.Tripped;
}

console.log('this._aggregateState:', this._aggregateState);

Check failure on line 101 in src/CircuitBreaker.ts

View workflow job for this annotation

GitHub Actions / test

Unexpected console statement
console.log('initialState:', initialState);

Check failure on line 102 in src/CircuitBreaker.ts

View workflow job for this annotation

GitHub Actions / test

Unexpected console statement
console.log('this._aggregateState !== initialState:', this._aggregateState !== initialState);

Check failure on line 103 in src/CircuitBreaker.ts

View workflow job for this annotation

GitHub Actions / test

Unexpected console statement
if (initialState !== this._aggregateState) {
process.nextTick(() => {
this.emit('state-changed', this._aggregateState);
Expand Down

0 comments on commit 6f04833

Please sign in to comment.