Skip to content

Commit

Permalink
chore: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jeluard committed Feb 15, 2024
1 parent be84c20 commit bd4d9b7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/prover/test/e2e/cli/cmds/start.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,23 @@ import {rpcUrl, beaconUrl, proxyPort, proxyUrl, chainId, waitForCapellaFork, con

const cli = getLodestarProverCli();

describe("prover/start", () => {
describe("prover/proxy", () => {
it("should show help", async () => {
const output = await runCliCommand(cli, ["start", "--help"]);
const output = await runCliCommand(cli, ["proxy", "--help"]);

expect(output).toEqual(expect.stringContaining("Show help"));
});

it("should fail when --executionRpcUrl is missing", async () => {
await expect(runCliCommand(cli, ["start", "--port", "8088"])).rejects.toThrow(
await expect(runCliCommand(cli, ["proxy", "--port", "8088"])).rejects.toThrow(
"Missing required argument: executionRpcUrl"
);
});

it("should fail when --beaconUrls and --beaconBootnodes are provided together", async () => {
await expect(
runCliCommand(cli, [
"start",
"proxy",
"--beaconUrls",
"http://localhost:4000",
"--beaconBootnodes",
Expand All @@ -38,7 +38,7 @@ describe("prover/start", () => {

it("should fail when both of --beaconUrls and --beaconBootnodes are not provided", async () => {
await expect(
runCliCommand(cli, ["start", "--port", "8088", "--executionRpcUrl", "http://localhost:3000"])
runCliCommand(cli, ["proxy", "--port", "8088", "--executionRpcUrl", "http://localhost:3000"])
).rejects.toThrow("Either --beaconUrls or --beaconBootnodes must be provided");
});

Expand All @@ -55,7 +55,7 @@ describe("prover/start", () => {
proc = await spawnCliCommand(
"packages/prover/bin/lodestar-prover.js",
[
"start",
"proxy",
"--port",
String(proxyPort as number),
"--executionRpcUrl",
Expand Down

0 comments on commit bd4d9b7

Please sign in to comment.