mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
test: ensure webtorrent regression test is robust against ci flakiness
Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
1bbaac85fd
commit
f03ddd90a0
2 files changed
+30
-1
No files matched your search
@@ -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
|
||||
@@ -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]
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user