mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-08 00:33:12 +00:00
fix peer exchange test
This commit is contained in:
parent
0739fd1dd2
commit
3bb5a4931f
@ -1,7 +1,7 @@
|
||||
import { bootstrap } from "@libp2p/bootstrap";
|
||||
import type { PeerId } from "@libp2p/interface";
|
||||
import { wakuPeerExchangeDiscovery } from "@waku/discovery";
|
||||
import { AutoSharding } from "@waku/interfaces";
|
||||
import type { AutoSharding, StaticSharding } from "@waku/interfaces";
|
||||
import { createLightNode, LightNode, Tags } from "@waku/sdk";
|
||||
import { contentTopicToShardIndex } from "@waku/utils";
|
||||
import chai, { expect } from "chai";
|
||||
@ -45,7 +45,7 @@ describe("Static Sharding: Peer Management", function () {
|
||||
|
||||
const shard = 2;
|
||||
const numShardsInCluster = 8;
|
||||
const networkConfig: AutoSharding = { clusterId, numShardsInCluster };
|
||||
const networkConfig: StaticSharding = { clusterId };
|
||||
|
||||
await nwaku1.start({
|
||||
discv5Discovery: true,
|
||||
@ -122,7 +122,7 @@ describe("Static Sharding: Peer Management", function () {
|
||||
this.timeout(100_000);
|
||||
|
||||
const numShardsInCluster = 8;
|
||||
const networkConfig: AutoSharding = { clusterId, numShardsInCluster };
|
||||
const networkConfig: StaticSharding = { clusterId };
|
||||
|
||||
// this service node is not subscribed to the shard
|
||||
await nwaku1.start({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user