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;
discv5Discovery?: boolean;
storeMessageDbUrl?: string;
topics?: string;
topic?: string;
rpcPrivate?: boolean;
websocketSupport?: boolean;
tcpPort?: number;

View File

@ -27,7 +27,7 @@ async function runNodes(
context: Mocha.Context,
pubSubTopic?: string
): Promise<[NimGoNode, LightNode]> {
const nwakuOptional = pubSubTopic ? { topics: pubSubTopic } : {};
const nwakuOptional = pubSubTopic ? { topic: pubSubTopic } : {};
const nwaku = new NimGoNode(makeLogFileName(context));
await nwaku.start({
lightpush: true,

View File

@ -575,7 +575,7 @@ describe("Waku Store, custom pubsub topic", () => {
nwaku = new NimGoNode(makeLogFileName(this));
await nwaku.start({
store: true,
topics: customPubSubTopic,
topic: customPubSubTopic,
relay: true,
});
});