Skip to content

Commit

Permalink
Change how parallel mode is tested
Browse files Browse the repository at this point in the history
  • Loading branch information
fvictorio committed Feb 21, 2022
1 parent 8ba2070 commit 36411fd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 38 deletions.
4 changes: 2 additions & 2 deletions packages/hardhat-core/test/builtin-tasks/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe("test task", function () {
describe("with the default config", function () {
useEnvironment();

it("should fail in serial mode because the HRE is shared between test files", async function () {
it("should fail in serial mode", async function () {
await this.env.run("test", {
noCompile: true,
});
Expand All @@ -47,7 +47,7 @@ describe("test task", function () {
(process as any).exitCode = undefined;
});

it("should pass in parallel mode because the HRE is not shared between test files", async function () {
it("should pass in parallel mode", async function () {
await this.env.run("test", {
noCompile: true,
parallel: true,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const assert = require("assert");

describe("parallel tests", function () {
it("pass if run in parallel mode", async function () {
assert(process.env.MOCHA_WORKER_ID !== undefined);
});
});

This file was deleted.

This file was deleted.

0 comments on commit 36411fd

Please sign in to comment.