Skip to content

Commit

Permalink
chore: make tests more reliable in ci
Browse files Browse the repository at this point in the history
CI is underpowered, the "many small writes" test overloads process
and means the connection monitor thinks the remote has gone away
so disable it during interface tests.
  • Loading branch information
achingbrain committed Nov 14, 2024
1 parent 7dcabb8 commit b7361fb
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 4 deletions.
4 changes: 3 additions & 1 deletion packages/integration-tests/.aegir.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default {
const { identify } = await import('@libp2p/identify')
const { echo } = await import('@libp2p/echo')
const { mockMuxer } = await import('@libp2p/interface-compliance-tests/mocks')
const { ping } = await import('@libp2p/ping')

const libp2p = await createLibp2p({
connectionManager: {
Expand Down Expand Up @@ -54,7 +55,8 @@ export default {
}),
echo: echo({
maxInboundStreams: 5
})
}),
ping: ping()
}
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ describe('Circuit relay transport interface compliance', () => {
},
connectionGater: {
denyDialMultiaddr: () => false
},
connectionMonitor: {
enabled: false
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ describe('memory transport interface compliance tests', () => {
],
streamMuxers: [
yamux()
]
],
connectionMonitor: {
enabled: false
}
}

return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ describe('tcp transport interface compliance IPv4', () => {
],
streamMuxers: [
yamux()
]
],
connectionMonitor: {
enabled: false
}
}

return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { yamux } from '@chainsafe/libp2p-yamux'
import { circuitRelayTransport } from '@libp2p/circuit-relay-v2'
import { identify } from '@libp2p/identify'
import tests from '@libp2p/interface-compliance-tests/transport'
import { ping } from '@libp2p/ping'
import { webRTC } from '@libp2p/webrtc'
import { webSockets } from '@libp2p/websockets'
import { all } from '@libp2p/websockets/filters'
Expand Down Expand Up @@ -33,10 +34,14 @@ describe('WebRTC transport interface compliance', () => {
yamux()
],
services: {
identify: identify()
identify: identify(),
ping: ping()
},
connectionGater: {
denyDialMultiaddr: () => false
},
connectionMonitor: {
enabled: false
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ describe('websocket transport interface compliance', () => {
],
connectionGater: {
denyDialMultiaddr: () => false
},
connectionMonitor: {
enabled: false
}
}

Expand Down

0 comments on commit b7361fb

Please sign in to comment.