Skip to content

Commit

Permalink
Enable allNamespaces in e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
dapplion committed Oct 4, 2022
1 parent d080ac9 commit e3fc4a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/beacon-node/test/e2e/api/lodestar/lodestar.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {createIBeaconConfig, IChainConfig} from "@lodestar/config";
import {chainConfig as chainConfigDef} from "@lodestar/config/default";
import {phase0} from "@lodestar/types";
import {SLOTS_PER_EPOCH} from "@lodestar/params";
import {getClient} from "@lodestar/api";
import {getClient, allNamespaces} from "@lodestar/api";
import {LogLevel, testLogger, TestLoggerOpts} from "../../../utils/logger.js";
import {getDevBeaconNode} from "../../../utils/node/beacon.js";
import {waitForEvent} from "../../../utils/events/resolver.js";
Expand Down Expand Up @@ -45,7 +45,7 @@ describe("api / impl / validator", function () {
params: testParams,
options: {
sync: {isSingleNode: true},
api: {rest: {enabled: true, api: ["lodestar"], port: restPort}},
api: {rest: {enabled: true, api: allNamespaces, port: restPort}},
chain: {blsVerifyAllMainThread: true},
},
validatorCount,
Expand Down Expand Up @@ -93,7 +93,7 @@ describe("api / impl / validator", function () {
params: testParams,
options: {
sync: {isSingleNode: true},
api: {rest: {enabled: true, api: ["lodestar"], port: restPort}},
api: {rest: {enabled: true, api: allNamespaces, port: restPort}},
chain: {blsVerifyAllMainThread: true},
},
validatorCount,
Expand Down
3 changes: 2 additions & 1 deletion packages/beacon-node/test/e2e/chain/lightclient.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {IChainConfig} from "@lodestar/config";
import {ssz} from "@lodestar/types";
import {fromHexString, toHexString} from "@chainsafe/ssz";
import {TimestampFormatCode} from "@lodestar/utils";
import {allNamespaces} from "@lodestar/api";
import {EPOCHS_PER_SYNC_COMMITTEE_PERIOD, SLOTS_PER_EPOCH} from "@lodestar/params";
import {Lightclient} from "@lodestar/light-client";
import {computeStartSlotAtEpoch} from "@lodestar/state-transition";
Expand Down Expand Up @@ -71,7 +72,7 @@ describe("chain / lightclient", function () {
options: {
sync: {isSingleNode: true},
network: {allowPublishToZeroPeers: true},
api: {rest: {enabled: true, api: ["lightclient"], port: restPort, address: "localhost"}},
api: {rest: {enabled: true, api: allNamespaces, port: restPort, address: "localhost"}},
chain: {blsVerifyAllMainThread: true},
},
validatorCount: validatorCount * validatorClientCount,
Expand Down

0 comments on commit e3fc4a6

Please sign in to comment.