test: fix ENR test

This commit is contained in:
fryorcraken.eth 2022-11-01 19:46:02 +11:00
parent 052d5c9d20
commit a30354cbd0
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
import { createLightNode } from "@waku/create"; import { createPrivacyNode } from "@waku/create";
import type { WakuLight } from "@waku/interfaces"; import type { WakuPrivacy } from "@waku/interfaces";
import { Protocols } from "@waku/interfaces"; import { Protocols } from "@waku/interfaces";
import { expect } from "chai"; import { expect } from "chai";
@ -9,7 +9,7 @@ import { waitForRemotePeer } from "../wait_for_remote_peer";
import { ENR } from "./enr"; import { ENR } from "./enr";
describe("ENR Interop: nwaku", function () { describe("ENR Interop: nwaku", function () {
let waku: WakuLight; let waku: WakuPrivacy;
let nwaku: Nwaku; let nwaku: Nwaku;
afterEach(async function () { afterEach(async function () {
@ -28,7 +28,7 @@ describe("ENR Interop: nwaku", function () {
}); });
const multiAddrWithId = await nwaku.getMultiaddrWithId(); const multiAddrWithId = await nwaku.getMultiaddrWithId();
waku = await createLightNode({ waku = await createPrivacyNode({
staticNoiseKey: NOISE_KEY_1, staticNoiseKey: NOISE_KEY_1,
}); });
await waku.start(); await waku.start();
@ -60,7 +60,7 @@ describe("ENR Interop: nwaku", function () {
}); });
const multiAddrWithId = await nwaku.getMultiaddrWithId(); const multiAddrWithId = await nwaku.getMultiaddrWithId();
waku = await createLightNode({ waku = await createPrivacyNode({
staticNoiseKey: NOISE_KEY_1, staticNoiseKey: NOISE_KEY_1,
}); });
await waku.start(); await waku.start();
@ -92,7 +92,7 @@ describe("ENR Interop: nwaku", function () {
}); });
const multiAddrWithId = await nwaku.getMultiaddrWithId(); const multiAddrWithId = await nwaku.getMultiaddrWithId();
waku = await createLightNode({ waku = await createPrivacyNode({
staticNoiseKey: NOISE_KEY_1, staticNoiseKey: NOISE_KEY_1,
}); });
await waku.start(); await waku.start();