Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

fix: detect ed25519 keys in ws test #3808

Merged
merged 1 commit into from
Aug 12, 2021
Merged
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
2 changes: 1 addition & 1 deletion examples/browser-exchange-files/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ async function runTest () {
const id = await relay.api.id()
const address = id.addresses
.map(ma => ma.toString())
.find(addr => addr.includes('/ws/p2p'))
.find(addr => addr.includes('/ws/p2p/'))

if (!address) {
throw new Error(`Could not find web socket address in ${id.addresses}`)
Expand Down
2 changes: 1 addition & 1 deletion examples/circuit-relaying/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ async function runTest () {
const id = await relay.api.id()
const address = id.addresses
.map(ma => ma.toString())
.find(addr => addr.includes('/ws/p2p/Qm'))
.find(addr => addr.includes('/ws/p2p/'))

if (!address) {
throw new Error(`Could not find web socket address in ${id.addresses}`)
Expand Down