Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 57cf37e

Browse files
committed
Increase timeout in startDetachedInstance test, and fix regex test in process-name test.
1 parent 3c2a8b9 commit 57cf37e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/packages/cli/tests/detach.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ describe("@ganache/cli", () => {
6868

6969
before(async function () {
7070
// set timeout here, because the long running piece is in the before() hook
71-
this.timeout(10000);
71+
this.timeout(30000);
7272

7373
beforeStartTime = Date.now();
7474
const startingInstance = startDetachedInstance(

src/packages/cli/tests/process-name.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,8 @@ describe("createProcessName", () => {
5555
const generatedName = createProcessName();
5656
// each part must be at least 3 chars long, and at most 20 chars
5757
const nameRegex = /^([a-z]{3,20}_){2}[a-z]{3,20}$/;
58-
assert.match(
59-
generatedName,
60-
nameRegex,
58+
assert(
59+
nameRegex.test(generatedName),
6160
`Exepected to have generated a reasonable name, got "${generatedName}"`
6261
);
6362
});

0 commit comments

Comments
 (0)