chore: remove relay as default when starting nwaku for tests (#1044)

* chore: redeploy

* remove: relay as default for nwaku

* address: comments

* remove relay as default and add where needed

* Update packages/tests/tests/light_push.node.spec.ts

Co-authored-by: fryorcraken.eth <110212804+fryorcraken@users.noreply.github.com>

Co-authored-by: fryorcraken.eth <110212804+fryorcraken@users.noreply.github.com>
This commit is contained in:
Danish Arora 2022-12-12 11:08:08 +05:30 committed by GitHub
parent eecdb6aeeb
commit d6de62a391
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 17 additions and 7 deletions

View File

@ -445,8 +445,8 @@ export function defaultArgs(): Args {
return {
listenAddress: "127.0.0.1",
nat: "none",
relay: true,
rpc: true,
relay: false,
rpcAdmin: true,
websocketSupport: true,
logLevel: LogLevel.Trace,

View File

@ -48,7 +48,12 @@ describe("Waku Message Ephemeral field", () => {
beforeEach(async function () {
this.timeout(15_000);
nwaku = new Nwaku(makeLogFileName(this));
await nwaku.start({ filter: true, lightpush: true, store: true });
await nwaku.start({
filter: true,
lightpush: true,
store: true,
relay: true,
});
waku = await createLightNode({
staticNoiseKey: NOISE_KEY_1,
libp2p: { addresses: { listen: ["/ip4/0.0.0.0/tcp/0/ws"] } },

View File

@ -26,7 +26,7 @@ describe("Waku Filter", () => {
beforeEach(async function () {
this.timeout(15000);
nwaku = new Nwaku(makeLogFileName(this));
await nwaku.start({ filter: true, lightpush: true });
await nwaku.start({ filter: true, lightpush: true, relay: true });
waku = await createLightNode({
staticNoiseKey: NOISE_KEY_1,
libp2p: { addresses: { listen: ["/ip4/0.0.0.0/tcp/0/ws"] } },

View File

@ -32,7 +32,7 @@ describe("Waku Light Push [node only]", () => {
this.timeout(15_000);
nwaku = new Nwaku(makeLogFileName(this));
await nwaku.start({ lightpush: true });
await nwaku.start({ lightpush: true, relay: true });
waku = await createLightNode({
staticNoiseKey: NOISE_KEY_1,
@ -65,7 +65,11 @@ describe("Waku Light Push [node only]", () => {
const customPubSubTopic = "/waku/2/custom-dapp/proto";
nwaku = new Nwaku(makeLogFileName(this));
await nwaku.start({ lightpush: true, topics: customPubSubTopic });
await nwaku.start({
lightpush: true,
topics: customPubSubTopic,
relay: true,
});
waku = await createLightNode({
pubSubTopic: customPubSubTopic,

View File

@ -12,8 +12,8 @@ describe("nwaku", () => {
const expected = [
"--listen-address=127.0.0.1",
"--nat=none",
"--relay=true",
"--rpc=true",
"--relay=false",
"--rpc-admin=true",
"--websocket-support=true",
"--log-level=TRACE",

View File

@ -44,7 +44,7 @@ describe("Waku Store", () => {
beforeEach(async function () {
this.timeout(15_000);
nwaku = new Nwaku(makeLogFileName(this));
await nwaku.start({ store: true, lightpush: true });
await nwaku.start({ store: true, lightpush: true, relay: true });
});
afterEach(async function () {
@ -568,6 +568,7 @@ describe("Waku Store, custom pubsub topic", () => {
await nwaku.start({
store: true,
topics: customPubSubTopic,
relay: true,
});
});