diff --git a/src/packages/cli/tests/detach.test.ts b/src/packages/cli/tests/detach.test.ts index a72dd05154..d342b3d5fb 100644 --- a/src/packages/cli/tests/detach.test.ts +++ b/src/packages/cli/tests/detach.test.ts @@ -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( diff --git a/src/packages/cli/tests/process-name.test.ts b/src/packages/cli/tests/process-name.test.ts index af6048a666..55ef22789b 100644 --- a/src/packages/cli/tests/process-name.test.ts +++ b/src/packages/cli/tests/process-name.test.ts @@ -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}"` ); });