diff --git a/src/webrtc-signal/transport.ts b/src/webrtc-signal/transport.ts index 31cb489718..005724076c 100644 --- a/src/webrtc-signal/transport.ts +++ b/src/webrtc-signal/transport.ts @@ -135,6 +135,7 @@ export class WebRTCSignal implements Transport, Startable { pubsub.subscribe(WEBRTC_SIGNAL_TOPIC) subscribed = true } catch (err: any) { + // Pubsub may not be started yet if ((err as Error).message.includes(ERR_PUBSUB_NOT_STARTED)) { // Wait before retrying await delay(500) diff --git a/test/interop.ts b/test/interop.ts index 4fb8ab43db..0f6d039e46 100644 --- a/test/interop.ts +++ b/test/interop.ts @@ -52,6 +52,8 @@ async function createGoPeer (options: SpawnOptions): Promise { opts.push(`-id=${options.key}`) } + // Use only the required muxer as js-libp2p nodes run into an error causing the mplex muxer tests to fail + // with error "failed to negotiate stream multiplexer: protocols not supported: [/yamux/1.0.0]" if (options.muxer != null) { opts.push(`-muxer=${options.muxer}`) }