fix: ensure node only enable protocol we are testing

This commit is contained in:
Franck Royer 2022-07-25 12:48:48 +10:00 committed by fryorcraken.eth
parent 4c3da7bad2
commit 0a505659b7
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 36 additions and 6 deletions

View File

@ -21,7 +21,12 @@ describe("Wait for remote peer", function () {
it("Relay - dialed first", async function () {
this.timeout(20_000);
nwaku = new Nwaku(makeLogFileName(this));
await nwaku.start();
await nwaku.start({
relay: true,
store: false,
filter: false,
lightpush: false,
});
const multiAddrWithId = await nwaku.getMultiaddrWithId();
waku = await createWaku({
@ -41,7 +46,12 @@ describe("Wait for remote peer", function () {
it("Relay - dialed after", async function () {
this.timeout(20_000);
nwaku = new Nwaku(makeLogFileName(this));
await nwaku.start();
await nwaku.start({
relay: true,
store: false,
filter: false,
lightpush: false,
});
const multiAddrWithId = await nwaku.getMultiaddrWithId();
waku = await createWaku({
@ -84,7 +94,12 @@ describe("Wait for remote peer", function () {
it("Store - dialed first", async function () {
this.timeout(20_000);
nwaku = new Nwaku(makeLogFileName(this));
await nwaku.start({ persistMessages: true });
await nwaku.start({
store: true,
relay: false,
lightpush: false,
filter: false,
});
const multiAddrWithId = await nwaku.getMultiaddrWithId();
waku = await createWaku({
@ -105,7 +120,12 @@ describe("Wait for remote peer", function () {
it("Store - dialed after - with timeout", async function () {
this.timeout(20_000);
nwaku = new Nwaku(makeLogFileName(this));
await nwaku.start({ persistMessages: true });
await nwaku.start({
store: true,
relay: false,
lightpush: false,
filter: false,
});
const multiAddrWithId = await nwaku.getMultiaddrWithId();
waku = await createWaku({
@ -128,7 +148,12 @@ describe("Wait for remote peer", function () {
it("LightPush", async function () {
this.timeout(20_000);
nwaku = new Nwaku(makeLogFileName(this));
await nwaku.start({ lightpush: true });
await nwaku.start({
lightpush: true,
filter: false,
relay: false,
store: false,
});
const multiAddrWithId = await nwaku.getMultiaddrWithId();
waku = await createWaku({
@ -151,7 +176,12 @@ describe("Wait for remote peer", function () {
it("Filter", async function () {
this.timeout(20_000);
nwaku = new Nwaku(makeLogFileName(this));
await nwaku.start({ filter: true });
await nwaku.start({
filter: true,
lightpush: false,
relay: false,
store: false,
});
const multiAddrWithId = await nwaku.getMultiaddrWithId();
waku = await createWaku({