diff --git a/packages/tests/src/lib/runNodes.ts b/packages/tests/src/lib/runNodes.ts index 687ae1af25..f80962019a 100644 --- a/packages/tests/src/lib/runNodes.ts +++ b/packages/tests/src/lib/runNodes.ts @@ -76,6 +76,7 @@ export async function runNodes( } else if (isStaticSharding(networkConfig) && options.relayShards) { const shards = options.relayShards; nwakuArgs.shard = shards; + nwakuArgs.numShardsInNetwork = 0; shards.map((shardId) => routingInfos.push(createRoutingInfo(networkConfig, { shardId })) diff --git a/packages/tests/tests/metadata.spec.ts b/packages/tests/tests/metadata.spec.ts index 450621b0e6..1be3fe54a6 100644 --- a/packages/tests/tests/metadata.spec.ts +++ b/packages/tests/tests/metadata.spec.ts @@ -151,14 +151,15 @@ describe("Metadata Protocol", function () { it("receiving a ping from a peer does not overwrite shard info", async function () { const clusterId = 2; const shards = [1]; - const numShardsInCluster = 8; + const numShardsInCluster = 0; //static sharding await nwaku1.start({ relay: true, discv5Discovery: true, peerExchange: true, clusterId, - shard: shards + shard: shards, + numShardsInNetwork: numShardsInCluster }); const nwaku1Ma = await nwaku1.getMultiaddrWithId(); diff --git a/packages/tests/tests/store/different_static_shards.spec.ts b/packages/tests/tests/store/different_static_shards.spec.ts index 3c639364bc..7295666588 100644 --- a/packages/tests/tests/store/different_static_shards.spec.ts +++ b/packages/tests/tests/store/different_static_shards.spec.ts @@ -138,7 +138,8 @@ describe("Waku Store, different static shards", function () { store: true, clusterId: StaticTestClusterId, shard: [1], - relay: true + relay: true, + numShardsInNetwork: 0 // static sharding }); // Set up and start a new nwaku node with Default Pubsubtopic @@ -147,7 +148,8 @@ describe("Waku Store, different static shards", function () { store: true, clusterId: StaticTestClusterId, shard: [2], - relay: true + relay: true, + numShardsInNetwork: 0 // static sharding }); const totalMsgs = 10;