test: topics arg renamed to topic in nwaku

This commit is contained in:
fryorcraken.eth 2023-06-28 13:27:57 +10:00
parent fff5d66d2f
commit 008bb6ca2e
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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,

View File

@ -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,
}); });
}); });