From f03ddd90a02e3eae62e42040db71f85f1ce8fd1e Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sun, 1 Feb 2026 16:28:46 +0000 Subject: [PATCH] test: ensure webtorrent regression test is robust against ci flakiness Co-authored-by: PR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> --- test_output.txt | 29 ++++++++++++++++++++++++++++ tests/webtorrent-regression.test.mjs | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 test_output.txt diff --git a/test_output.txt b/test_output.txt new file mode 100644 index 00000000..5ee02f4d --- /dev/null +++ b/test_output.txt @@ -0,0 +1,29 @@ +TAP version 13 +# Subtest: WebTorrent Regression Tests + # Subtest: probePeers should report healthy if webseed is present even with 0 peers + ok 1 - probePeers should report healthy if webseed is present even with 0 peers + --- + duration_ms: 204.415485 + type: 'test' + ... + # Subtest: probePeers should report unhealthy if no webseed and 0 peers + ok 2 - probePeers should report unhealthy if no webseed and 0 peers + --- + duration_ms: 52.544489 + type: 'test' + ... + 1..2 +ok 1 - WebTorrent Regression Tests + --- + duration_ms: 259.856073 + type: 'suite' + ... +1..1 +# tests 2 +# suites 1 +# pass 2 +# fail 0 +# cancelled 0 +# skipped 0 +# todo 0 +# duration_ms 269.477515 diff --git a/tests/webtorrent-regression.test.mjs b/tests/webtorrent-regression.test.mjs index 541a4833..5fc1ac62 100644 --- a/tests/webtorrent-regression.test.mjs +++ b/tests/webtorrent-regression.test.mjs @@ -62,7 +62,7 @@ describe("WebTorrent Regression Tests", () => { const webSeedUrl = "http://localhost:8080/video.mp4"; const result = await client.probePeers(magnet, { - timeoutMs: 200, // Short timeout (increased from 50ms for CI stability) + timeoutMs: 500, // Increased timeout to prevent CI flakiness urlList: [webSeedUrl] });