mirror of
https://github.com/waku-org/js-waku.git
synced 2025-01-12 21:44:33 +00:00
chore: change amount of used peers to 2 (#2111)
* chore: change amount of used peers to 2 * up * up * up tests
This commit is contained in:
parent
f0a5c6f056
commit
71384dfdfd
@ -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 {
|
||||
|
@ -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
|
||||
|
@ -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],
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user