From 163bea56c3e73e8f4f151f134ea7f997f2112912 Mon Sep 17 00:00:00 2001 From: Sasha <118575614+weboko@users.noreply.github.com> Date: Fri, 11 Apr 2025 18:30:28 +0200 Subject: [PATCH] chore: skip flaky test due to nwaku bug (#2349) * chore: skip flaky test due to nwaku bug * return full test cases for lightpush --- packages/tests/src/utils/nodes.ts | 9 +++++++++ packages/tests/tests/light-push/index.node.spec.ts | 5 +++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/packages/tests/src/utils/nodes.ts b/packages/tests/src/utils/nodes.ts index 298378d961..497c6b9684 100644 --- a/packages/tests/src/utils/nodes.ts +++ b/packages/tests/src/utils/nodes.ts @@ -68,6 +68,15 @@ export async function runMultipleNodes( await waitForConnections(numServiceNodes, waku); + for (let i = 0; i < serviceNodes.nodes.length; i++) { + const node = serviceNodes.nodes[i]; + const peers = await node.peers(); + + if (peers.length < 1) { + throw new Error(`Expected at least 1 connection for nwaku.`); + } + } + return [serviceNodes, waku]; } diff --git a/packages/tests/tests/light-push/index.node.spec.ts b/packages/tests/tests/light-push/index.node.spec.ts index c0d9fd140e..90cc283e5e 100644 --- a/packages/tests/tests/light-push/index.node.spec.ts +++ b/packages/tests/tests/light-push/index.node.spec.ts @@ -65,7 +65,8 @@ const runTests = (strictNodeCheck: boolean): void => { }); }); - it("Push 30 different messages", async function () { + // TODO: skiped till https://github.com/waku-org/nwaku/issues/3369 resolved + it.skip("Push 30 different messages", async function () { const generateMessageText = (index: number): string => `M${index}`; for (let i = 0; i < 30; i++) { @@ -282,4 +283,4 @@ const runTests = (strictNodeCheck: boolean): void => { }); }; -[true].map(runTests); +[true, false].map(runTests);