Skip to content

Commit 742932b

Browse files
Increased a test timeout to see if it produces different results
1 parent fe901ea commit 742932b

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

test/specs/cli.spec.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,19 @@ describe("bump", () => {
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(5000, this.timeout()));
16-
let bump = chaiExec("", { timeout: 2500 });
15+
this.timeout(Math.max(10000, this.timeout()));
16+
let bump = chaiExec("", { timeout: 5000 });
1717

1818
try {
1919
// It should have prompted for input
2020
expect(bump.stdout).to.contain("The current version in package.json is 1.0.0\nHow would you like to bump it? (Use arrow keys)");
2121
}
2222
catch (error) {
23-
console.log("====================== begin bump output ======================");
24-
console.log(bump);
25-
console.log("====================== end bump output ======================");
23+
console.log(
24+
"====================== begin bump output ======================\n",
25+
bump,
26+
"\n====================== end bump output ======================"
27+
);
2628
throw error;
2729
}
2830
});

0 commit comments

Comments
 (0)