Skip to content

Commit

Permalink
fix: use new circuit fuses with enhanced logging (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
jithine authored Sep 19, 2019
1 parent 02a97db commit 0aceaf1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const path = require('path');
const jenkins = require('jenkins');
const xmlescape = require('xml-escape');
const tinytim = require('tinytim');
const Breaker = require('circuit-fuses');
const Breaker = require('circuit-fuses').breaker;
const hoek = require('hoek');

const password = Symbol('password');
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"sinon": "^7.1.0"
},
"dependencies": {
"circuit-fuses": "^2.2.1",
"circuit-fuses": "^4.0.4",
"hoek": "^5.0.4",
"jenkins": "^0.20.0",
"request": "^2.88.0",
Expand Down
2 changes: 1 addition & 1 deletion test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ describe('index', () => {

BreakerFactory = sinon.stub().returns(breakerMock);

mockery.registerMock('circuit-fuses', BreakerFactory);
mockery.registerMock('circuit-fuses', { breaker: BreakerFactory });

// eslint-disable-next-line global-require
Executor = require('../index');
Expand Down

0 comments on commit 0aceaf1

Please sign in to comment.