Skip to content

Commit

Permalink
Fix unhandled promise rejection warnings (#70)
Browse files Browse the repository at this point in the history
Connects to #68
  • Loading branch information
helio-frota authored Jun 8, 2017
1 parent dd4e1f2 commit fd0fee2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ test('CircuitBreaker events', (t) => {
const timeoutBreaker = cb(slowFunction, options);
let timedOut = false;
timeoutBreaker.on('timeout', () => timedOut++);
timeoutBreaker.fire().then(t.fail);
timeoutBreaker.fire().then(t.fail).catch(() => {});
})
.then((e) => t.equals(timeout, 0, 'timeout event fired'))
.then(t.end);
Expand Down Expand Up @@ -588,7 +588,7 @@ test('CircuitBreaker fallback as a rejected promise', (t) => {
.then(t.end);
});

breaker.fire(input);
breaker.fire(input).catch(() => {});
});

test('CircuitBreaker fallback as a CircuitBreaker', (t) => {
Expand Down

0 comments on commit fd0fee2

Please sign in to comment.