mirror of
https://github.com/logos-messaging/logos-messaging-js.git
synced 2026-05-05 12:23:06 +00:00
test: topics arg renamed to topic in nwaku
This commit is contained in:
parent
fff5d66d2f
commit
008bb6ca2e
@ -14,7 +14,7 @@ export interface Args {
|
|||||||
peerExchange?: boolean;
|
peerExchange?: boolean;
|
||||||
discv5Discovery?: boolean;
|
discv5Discovery?: boolean;
|
||||||
storeMessageDbUrl?: string;
|
storeMessageDbUrl?: string;
|
||||||
topics?: string;
|
topic?: string;
|
||||||
rpcPrivate?: boolean;
|
rpcPrivate?: boolean;
|
||||||
websocketSupport?: boolean;
|
websocketSupport?: boolean;
|
||||||
tcpPort?: number;
|
tcpPort?: number;
|
||||||
|
|||||||
@ -27,7 +27,7 @@ async function runNodes(
|
|||||||
context: Mocha.Context,
|
context: Mocha.Context,
|
||||||
pubSubTopic?: string
|
pubSubTopic?: string
|
||||||
): Promise<[NimGoNode, LightNode]> {
|
): Promise<[NimGoNode, LightNode]> {
|
||||||
const nwakuOptional = pubSubTopic ? { topics: pubSubTopic } : {};
|
const nwakuOptional = pubSubTopic ? { topic: pubSubTopic } : {};
|
||||||
const nwaku = new NimGoNode(makeLogFileName(context));
|
const nwaku = new NimGoNode(makeLogFileName(context));
|
||||||
await nwaku.start({
|
await nwaku.start({
|
||||||
lightpush: true,
|
lightpush: true,
|
||||||
|
|||||||
@ -575,7 +575,7 @@ describe("Waku Store, custom pubsub topic", () => {
|
|||||||
nwaku = new NimGoNode(makeLogFileName(this));
|
nwaku = new NimGoNode(makeLogFileName(this));
|
||||||
await nwaku.start({
|
await nwaku.start({
|
||||||
store: true,
|
store: true,
|
||||||
topics: customPubSubTopic,
|
topic: customPubSubTopic,
|
||||||
relay: true,
|
relay: true,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user