Skip to content

Commit

Permalink
test: better output message
Browse files Browse the repository at this point in the history
  • Loading branch information
helio-frota committed Jun 16, 2017
1 parent e181d43 commit 66096e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ test('Circuit Breaker timeout with semaphore released', (t) => {
const breaker = cb(slowFunction, { timeout: 10, capacity: 2 });

breaker.on('timeout', (result) => {
t.equal(breaker.semaphore.count, breaker.options.capacity);
t.equal(breaker.semaphore.count, breaker.options.capacity, `semaphore count is: ${breaker.semaphore.count} and initial capacity is: ${breaker.options.capacity}`);
t.end();
});

Expand Down

0 comments on commit 66096e2

Please sign in to comment.