Skip to content

Commit

Permalink
chore: fix ping tests (#2215)
Browse files Browse the repository at this point in the history
The ping tests run over transient connections which can hit relay
limits.

Instead listen on tcp connections so the tests only run over direct
connections.
  • Loading branch information
achingbrain authored Nov 7, 2023
1 parent b8c2bf4 commit effcfaa
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions packages/libp2p/test/ping/ping.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,35 @@ describe('ping', () => {
nodes = await Promise.all([
createNode({
config: createBaseOptions({
addresses: {
listen: [
'/ip4/0.0.0.0/tcp/0'
]
},
services: {
ping: pingService()
}
})
}),
createNode({
config: createBaseOptions({
addresses: {
listen: [
'/ip4/0.0.0.0/tcp/0'
]
},
services: {
ping: pingService()
}
})
}),
createNode({
config: createBaseOptions({
addresses: {
listen: [
'/ip4/0.0.0.0/tcp/0'
]
},
services: {
ping: pingService()
}
Expand Down

0 comments on commit effcfaa

Please sign in to comment.