mirror of
https://github.com/waku-org/js-waku.git
synced 2025-02-04 08:34:57 +00:00
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 {
|
return {
|
||||||
listenAddress: "127.0.0.1",
|
listenAddress: "127.0.0.1",
|
||||||
nat: "none",
|
nat: "none",
|
||||||
relay: true,
|
|
||||||
rpc: true,
|
rpc: true,
|
||||||
|
relay: false,
|
||||||
rpcAdmin: true,
|
rpcAdmin: true,
|
||||||
websocketSupport: true,
|
websocketSupport: true,
|
||||||
logLevel: LogLevel.Trace,
|
logLevel: LogLevel.Trace,
|
||||||
|
@ -48,7 +48,12 @@ describe("Waku Message Ephemeral field", () => {
|
|||||||
beforeEach(async function () {
|
beforeEach(async function () {
|
||||||
this.timeout(15_000);
|
this.timeout(15_000);
|
||||||
nwaku = new Nwaku(makeLogFileName(this));
|
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({
|
waku = await createLightNode({
|
||||||
staticNoiseKey: NOISE_KEY_1,
|
staticNoiseKey: NOISE_KEY_1,
|
||||||
libp2p: { addresses: { listen: ["/ip4/0.0.0.0/tcp/0/ws"] } },
|
libp2p: { addresses: { listen: ["/ip4/0.0.0.0/tcp/0/ws"] } },
|
||||||
|
@ -26,7 +26,7 @@ describe("Waku Filter", () => {
|
|||||||
beforeEach(async function () {
|
beforeEach(async function () {
|
||||||
this.timeout(15000);
|
this.timeout(15000);
|
||||||
nwaku = new Nwaku(makeLogFileName(this));
|
nwaku = new Nwaku(makeLogFileName(this));
|
||||||
await nwaku.start({ filter: true, lightpush: true });
|
await nwaku.start({ filter: true, lightpush: true, relay: true });
|
||||||
waku = await createLightNode({
|
waku = await createLightNode({
|
||||||
staticNoiseKey: NOISE_KEY_1,
|
staticNoiseKey: NOISE_KEY_1,
|
||||||
libp2p: { addresses: { listen: ["/ip4/0.0.0.0/tcp/0/ws"] } },
|
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);
|
this.timeout(15_000);
|
||||||
|
|
||||||
nwaku = new Nwaku(makeLogFileName(this));
|
nwaku = new Nwaku(makeLogFileName(this));
|
||||||
await nwaku.start({ lightpush: true });
|
await nwaku.start({ lightpush: true, relay: true });
|
||||||
|
|
||||||
waku = await createLightNode({
|
waku = await createLightNode({
|
||||||
staticNoiseKey: NOISE_KEY_1,
|
staticNoiseKey: NOISE_KEY_1,
|
||||||
@ -65,7 +65,11 @@ describe("Waku Light Push [node only]", () => {
|
|||||||
const customPubSubTopic = "/waku/2/custom-dapp/proto";
|
const customPubSubTopic = "/waku/2/custom-dapp/proto";
|
||||||
|
|
||||||
nwaku = new Nwaku(makeLogFileName(this));
|
nwaku = new Nwaku(makeLogFileName(this));
|
||||||
await nwaku.start({ lightpush: true, topics: customPubSubTopic });
|
await nwaku.start({
|
||||||
|
lightpush: true,
|
||||||
|
topics: customPubSubTopic,
|
||||||
|
relay: true,
|
||||||
|
});
|
||||||
|
|
||||||
waku = await createLightNode({
|
waku = await createLightNode({
|
||||||
pubSubTopic: customPubSubTopic,
|
pubSubTopic: customPubSubTopic,
|
||||||
|
@ -12,8 +12,8 @@ describe("nwaku", () => {
|
|||||||
const expected = [
|
const expected = [
|
||||||
"--listen-address=127.0.0.1",
|
"--listen-address=127.0.0.1",
|
||||||
"--nat=none",
|
"--nat=none",
|
||||||
"--relay=true",
|
|
||||||
"--rpc=true",
|
"--rpc=true",
|
||||||
|
"--relay=false",
|
||||||
"--rpc-admin=true",
|
"--rpc-admin=true",
|
||||||
"--websocket-support=true",
|
"--websocket-support=true",
|
||||||
"--log-level=TRACE",
|
"--log-level=TRACE",
|
||||||
|
@ -44,7 +44,7 @@ describe("Waku Store", () => {
|
|||||||
beforeEach(async function () {
|
beforeEach(async function () {
|
||||||
this.timeout(15_000);
|
this.timeout(15_000);
|
||||||
nwaku = new Nwaku(makeLogFileName(this));
|
nwaku = new Nwaku(makeLogFileName(this));
|
||||||
await nwaku.start({ store: true, lightpush: true });
|
await nwaku.start({ store: true, lightpush: true, relay: true });
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(async function () {
|
afterEach(async function () {
|
||||||
@ -568,6 +568,7 @@ describe("Waku Store, custom pubsub topic", () => {
|
|||||||
await nwaku.start({
|
await nwaku.start({
|
||||||
store: true,
|
store: true,
|
||||||
topics: customPubSubTopic,
|
topics: customPubSubTopic,
|
||||||
|
relay: true,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user