Skip to content

Commit 5b481d4

Browse files
authored
chore: disable connection monitor in tests that use ping (#3283)
The connection monitor uses the ping protocol - if a test also uses the ping protocol it can exceed the max number of ping streams that are allowed to be open so disable it to prevent test failures.
1 parent e1aaf4e commit 5b481d4

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

packages/integration-tests/test/fixtures/base-options.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ export function createBaseOptions <T extends ServiceMap = Record<string, unknown
1919
'/webrtc'
2020
]
2121
},
22+
connectionMonitor: {
23+
enabled: false
24+
},
2225
transports: [
2326
tcp(),
2427
webRTC(),

packages/transport-webtransport/test/browser.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ describe('libp2p-webtransport', () => {
2222
connectionGater: {
2323
denyDialMultiaddr: async () => false
2424
},
25+
connectionMonitor: {
26+
enabled: false
27+
},
2528
services: {
2629
ping: ping()
2730
}

0 commit comments

Comments
 (0)