diff --git a/examples/browser-exchange-files/test.js b/examples/browser-exchange-files/test.js index f893098c17..6e33b120c5 100644 --- a/examples/browser-exchange-files/test.js +++ b/examples/browser-exchange-files/test.js @@ -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}`) diff --git a/examples/circuit-relaying/test.js b/examples/circuit-relaying/test.js index 274e695e6b..e3637f199f 100644 --- a/examples/circuit-relaying/test.js +++ b/examples/circuit-relaying/test.js @@ -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}`)