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

Commit 7a920d8

Browse files
authoredAug 12, 2021
fix: detect ed25519 keys in ws test (#3808)
Relax test to just look for `/ws/p2p/` string
1 parent 5c8da9a commit 7a920d8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎examples/browser-exchange-files/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ async function runTest () {
6868
const id = await relay.api.id()
6969
const address = id.addresses
7070
.map(ma => ma.toString())
71-
.find(addr => addr.includes('/ws/p2p'))
71+
.find(addr => addr.includes('/ws/p2p/'))
7272

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

‎examples/circuit-relaying/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ async function runTest () {
6363
const id = await relay.api.id()
6464
const address = id.addresses
6565
.map(ma => ma.toString())
66-
.find(addr => addr.includes('/ws/p2p/Qm'))
66+
.find(addr => addr.includes('/ws/p2p/'))
6767

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

0 commit comments

Comments
 (0)
This repository has been archived.