diff --git a/packages/tests/tests/ephemeral.node.spec.ts b/packages/tests/tests/ephemeral.node.spec.ts index 848162ca4b..a0cee19156 100644 --- a/packages/tests/tests/ephemeral.node.spec.ts +++ b/packages/tests/tests/ephemeral.node.spec.ts @@ -97,7 +97,8 @@ describe("Waku Message Ephemeral field", function () { store: true, relay: true, contentTopic: contentTopics, - clusterId: TestClusterId + clusterId: TestClusterId, + numShardsInNetwork: TestNetworkConfig.numShardsInCluster }); await nwaku.ensureSubscriptionsAutosharding([ TestContentTopic, diff --git a/packages/tests/tests/filter/subscribe-static-sharding.node.spec.ts b/packages/tests/tests/filter/subscribe-static-sharding.node.spec.ts index 17adf742ba..fa97915584 100644 --- a/packages/tests/tests/filter/subscribe-static-sharding.node.spec.ts +++ b/packages/tests/tests/filter/subscribe-static-sharding.node.spec.ts @@ -70,8 +70,9 @@ const runTests = (strictCheckNodes: boolean): void => { filter: true, lightpush: true, relay: true, - clusterId: TestClusterId, - shard: [shardId] + clusterId: staticNetworkConfig.clusterId, + shard: [shardId], + numShardsInNetwork: 0 // Running static sharding }); await waku.dial(await nwaku2.getMultiaddrWithId()); await waku.waitForPeers([Protocols.Filter, Protocols.LightPush]);