Skip to content

Commit

Permalink
Merge branch 'master' into weboko/improve-light-push
Browse files Browse the repository at this point in the history
  • Loading branch information
weboko committed Aug 27, 2024
2 parents a2042bc + 71384df commit 58a37ec
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/sdk/src/protocols/base_protocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface Options {
}

const RENEW_TIME_LOCK_DURATION = 30 * 1000;
const DEFAULT_NUM_PEERS_TO_USE = 3;
const DEFAULT_NUM_PEERS_TO_USE = 2;
const DEFAULT_MAINTAIN_PEERS_INTERVAL = 30_000;

export class BaseProtocolSDK implements IBaseProtocolSDK {
Expand Down
2 changes: 1 addition & 1 deletion packages/tests/src/utils/nodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export async function runMultipleNodes(
networkConfig: NetworkConfig = DefaultNetworkConfig,
customArgs?: Args,
strictChecking: boolean = false,
numServiceNodes = 3,
numServiceNodes = 2,
withoutFilter = false
): Promise<[ServiceNodesFleet, LightNode]> {
// create numServiceNodes nodes
Expand Down
2 changes: 1 addition & 1 deletion packages/tests/tests/filter/subscribe.node.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const runTests = (strictCheckNodes: boolean): void => {
});

it("Subscribe and receive messages via lightPush", async function () {
expect(waku.libp2p.getConnections()).has.length(3);
expect(waku.libp2p.getConnections()).has.length(2);

await waku.filter.subscribe(
[TestDecoder],
Expand Down
2 changes: 1 addition & 1 deletion packages/tests/tests/light-push/index.node.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
} from "./utils.js";

const runTests = (strictNodeCheck: boolean): void => {
const numServiceNodes = 3;
const numServiceNodes = 2;
describe(`Waku Light Push: Multiple Nodes: Strict Check: ${strictNodeCheck}`, function () {
// Set the timeout for all tests in this suite. Can be overwritten at test level
this.timeout(15000);
Expand Down

0 comments on commit 58a37ec

Please sign in to comment.