mirror of https://github.com/status-im/js-waku.git
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:
parent
eecdb6aeeb
commit
d6de62a391
|
@ -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,
|
||||
|
|
|
@ -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"] } },
|
||||
|
|
|
@ -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"] } },
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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,
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue