Skip to content

Commit

Permalink
fix: handle prover stratup failure
Browse files Browse the repository at this point in the history
  • Loading branch information
jeluard committed Jan 22, 2024
1 parent 27a65ce commit 6e1cc2f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/prover/test/e2e/cli/cmds/start.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ describe("prover/start", () => {
});

describe("when started", () => {
let proc: childProcess.ChildProcess;
let proc: childProcess.ChildProcess | null = null;
const paramsFilePath = path.join("/tmp", "e2e-test-env", "params.json");
const web3: Web3 = new Web3(proxyUrl);

Expand Down Expand Up @@ -73,8 +73,11 @@ describe("prover/start", () => {
await sleep(3000);
}, 50000);


afterAll(async () => {
await stopChildProcess(proc);
if (proc) {
await stopChildProcess(proc);
}
});

it("should respond to verified calls", async () => {
Expand Down

0 comments on commit 6e1cc2f

Please sign in to comment.