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

Commit

Permalink
Increase timeout in startDetachedInstance test, and fix regex test in…
Browse files Browse the repository at this point in the history
… process-name test.
  • Loading branch information
jeffsmale90 committed Nov 25, 2022
1 parent 3c2a8b9 commit 57cf37e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/packages/cli/tests/detach.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ describe("@ganache/cli", () => {

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

beforeStartTime = Date.now();
const startingInstance = startDetachedInstance(
Expand Down
5 changes: 2 additions & 3 deletions src/packages/cli/tests/process-name.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,8 @@ describe("createProcessName", () => {
const generatedName = createProcessName();
// each part must be at least 3 chars long, and at most 20 chars
const nameRegex = /^([a-z]{3,20}_){2}[a-z]{3,20}$/;
assert.match(
generatedName,
nameRegex,
assert(
nameRegex.test(generatedName),
`Exepected to have generated a reasonable name, got "${generatedName}"`
);
});
Expand Down

0 comments on commit 57cf37e

Please sign in to comment.