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

Commit

Permalink
fix: detect ed25519 keys in ws test (#3808)
Browse files Browse the repository at this point in the history
Relax test to just look for `/ws/p2p/` string
  • Loading branch information
achingbrain committed Aug 12, 2021
1 parent 5c8da9a commit 7a920d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/browser-exchange-files/test.js
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
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

0 comments on commit 7a920d8

Please sign in to comment.