Skip to content

Commit

Permalink
Fix the tests types
Browse files Browse the repository at this point in the history
  • Loading branch information
nazarhussain committed Sep 11, 2023
1 parent 9a519ad commit e3c106a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/beacon-node/test/unit/chain/bls/bls.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {CoordType} from "@chainsafe/blst";
import {PublicKey} from "@chainsafe/bls/types";
import {ISignatureSet, SignatureSetType} from "@lodestar/state-transition";
import {BlsSingleThreadVerifier} from "../../../../src/chain/bls/singleThread.js";
import {BlsMultiThreadWorkerPool} from "../../../../lib/chain/bls/multithread/index.js";
import {BlsMultiThreadWorkerPool} from "../../../../src/chain/bls/multithread/index.js";
import {testLogger} from "../../../utils/logger.js";

describe("BlsVerifier ", function () {
Expand Down
3 changes: 2 additions & 1 deletion packages/beacon-node/test/unit/chain/genesis/genesis.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {ErrorAborted} from "@lodestar/utils";
import {GenesisBuilder} from "../../../../src/chain/genesis/genesis.js";
import {testLogger} from "../../../utils/logger.js";
import {ZERO_HASH_HEX} from "../../../../src/constants/index.js";
import {EthJsonRpcBlockRaw, IEth1Provider} from "../../../../src/eth1/interface.js";
import {Eth1ProviderState, EthJsonRpcBlockRaw, IEth1Provider} from "../../../../src/eth1/interface.js";

describe("genesis builder", function () {
const logger = testLogger();
Expand Down Expand Up @@ -62,6 +62,7 @@ describe("genesis builder", function () {
validateContract: async () => {
return;
},
getState: () => Eth1ProviderState.ONLINE,
...eth1Provider,
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {sleep} from "@lodestar/utils";
import {IEth1Provider} from "../../../src/index.js";
import {ZERO_HASH} from "../../../src/constants/index.js";
import {Eth1MergeBlockTracker, StatusCode, toPowBlock} from "../../../src/eth1/eth1MergeBlockTracker.js";
import {EthJsonRpcBlockRaw} from "../../../src/eth1/interface.js";
import {Eth1ProviderState, EthJsonRpcBlockRaw} from "../../../src/eth1/interface.js";
import {testLogger} from "../../utils/logger.js";

/* eslint-disable @typescript-eslint/naming-convention */
Expand Down Expand Up @@ -57,6 +57,7 @@ describe("eth1 / Eth1MergeBlockTracker", () => {
validateContract: async (): Promise<any> => {
throw Error("Not implemented");
},
getState: () => Eth1ProviderState.ONLINE,
};

const eth1MergeBlockTracker = new Eth1MergeBlockTracker(
Expand Down Expand Up @@ -133,6 +134,7 @@ describe("eth1 / Eth1MergeBlockTracker", () => {
validateContract: async (): Promise<any> => {
throw Error("Not implemented");
},
getState: () => Eth1ProviderState.ONLINE,
};

await runFindMergeBlockTest(eth1Provider, blocks[blocks.length - 1]);
Expand Down Expand Up @@ -216,6 +218,7 @@ describe("eth1 / Eth1MergeBlockTracker", () => {
validateContract: async (): Promise<any> => {
throw Error("Not implemented");
},
getState: () => Eth1ProviderState.ONLINE,
};
}

Expand Down

0 comments on commit e3c106a

Please sign in to comment.