Skip to content

Commit 94659f9

Browse files
Increased test timeouts to allow for spawning a child process on slow environments like CI/CD
1 parent 8ae1816 commit 94659f9

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

.mocharc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ spec:
88
- test/specs/**/*.spec.js
99

1010
bail: true
11-
timeout: 6000
11+
timeout: 10000
1212
retries: 2
1313
recursive: true

test/specs/cli.spec.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@ const manifest = require("../../package.json");
66

77
describe("bump", () => {
88

9-
it("should run without any arguments", function () {
9+
it("should run without any arguments", () => {
1010
// Create a dummy package.json, otherwise an error will occur
1111
files.create("package.json", { version: "1.0.0" });
1212

1313
// Run the CLI without any arguments.
1414
// It will prompt the user and wait forever, so add a timeout.
15-
this.timeout(Math.max(10000, this.timeout()));
1615
let cli = bump("", { timeout: 6000 });
1716

1817
// It should have prompted for input

0 commit comments

Comments
 (0)