Skip to content
This repository was archived by the owner on Jan 8, 2024. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/interop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"test:chrome": "aegir test -t browser --cov",
"test:chrome-webworker": "aegir test -t webworker",
"test:firefox": "aegir test -t browser -- --browser firefox",
"test:firefox-webworker": "aegir test -t webworker -- --browser firefox",
"test:node": "aegir test -t node --cov",
"test:electron-main": "aegir test -t electron-main"
},
Expand Down
5 changes: 4 additions & 1 deletion packages/interop/test/fixtures/create-helia.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export async function createHeliaNode (config: Libp2pOptions = {}): Promise<Heli
const blockstore = new MemoryBlockstore()
const datastore = new MemoryDatastore()

// dial-only in the browser until webrtc browser-to-browser arrives
const libp2p = await createLibp2p({
transports: [
webSockets({
Expand All @@ -34,6 +33,10 @@ export async function createHeliaNode (config: Libp2pOptions = {}): Promise<Heli
connectionGater: {
denyDialMultiaddr: async () => false
},
connectionManager: {
minConnections: 0
},
peerDiscovery: [],
...config
})

Expand Down
3 changes: 3 additions & 0 deletions packages/interop/test/fixtures/create-helia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ export async function createHeliaNode (config: Libp2pOptions = {}): Promise<Heli
services: {
identify: identifyService()
},
connectionManager: {
minConnections: 0
},
...config
})

Expand Down
3 changes: 3 additions & 0 deletions packages/interop/test/fixtures/create-kubo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ export async function createKuboNode (options: ControllerOptions<'go'> = {}): Pr
'/ip4/0.0.0.0/tcp/4001',
'/ip4/0.0.0.0/tcp/4002/ws'
]
},
Routing: {
Type: 'none'
}
}
}
Expand Down