Skip to content

Commit 7814cb8

Browse files
committed
fix: timeout for beaker was not getting applied locally
1 parent 8317a17 commit 7814cb8

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

index.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,15 @@ class DockerExecutor extends Executor {
3939
this.docker = new Docker(options.docker);
4040
this.launchVersion = options.launchVersion || 'stable';
4141
this.prefix = options.prefix || '';
42-
this.breaker = new Fusebox((obj, cb) => obj.func(cb), hoek.applyToDefaults({
42+
43+
const breakerOptions = hoek.applyToDefaults({
4344
breaker: {
44-
timeout: 5 * 60 * 1000 // Default to 5 minute timeout
45+
maxFailures: 10,
46+
timeout: 5 * 60 * 1000 // Default to 5 minute timeout,
4547
}
46-
}, options.fusebox));
48+
}, options.fusebox || {});
49+
50+
this.breaker = new Fusebox((obj, cb) => obj.func(cb), breakerOptions);
4751
}
4852

4953
/**

0 commit comments

Comments
 (0)