From ec41f096271e342c602a51c1ea25a3f811e2bb95 Mon Sep 17 00:00:00 2001 From: chad Date: Sat, 29 Apr 2023 15:55:26 -0500 Subject: [PATCH] fix!: support yamux wherever mplex is supported (#1578) --- package.json | 2 +- test/upgrading/upgrader.spec.ts | 11 ++--------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 34ab033948..b5df58e0b2 100644 --- a/package.json +++ b/package.json @@ -89,7 +89,7 @@ "generate:proto:fetch": "protons ./src/fetch/pb/proto.proto", "generate:proto:identify": "protons ./src/identify/pb/message.proto", "generate:proto:plaintext": "protons ./src/insecure/pb/proto.proto", - "test": "aegir test -t node -f \"./dist/test/upgrading/upgrader.spec.js\" -g \"should limit the number of incoming streams that can be opened using a protocol\"", + "test": "aegir test", "test:node": "aegir test -t node -f \"./dist/test/**/*.{node,spec}.js\" --cov", "test:chrome": "aegir test -t browser -f \"./dist/test/**/*.spec.js\" --cov", "test:chrome-webworker": "aegir test -t webworker -f \"./dist/test/**/*.spec.js\"", diff --git a/test/upgrading/upgrader.spec.ts b/test/upgrading/upgrader.spec.ts index 0482f25e6b..43fcc29a73 100644 --- a/test/upgrading/upgrader.spec.ts +++ b/test/upgrading/upgrader.spec.ts @@ -34,7 +34,6 @@ import { DefaultComponents } from '../../src/components.js' import { StubbedInstance, stubInterface } from 'sinon-ts' import { yamux } from '@chainsafe/libp2p-yamux' import { EventEmitter } from '@libp2p/interfaces/events' -import { logger } from '@libp2p/logger' const addrs = [ multiaddr('/ip4/127.0.0.1/tcp/0'), @@ -665,10 +664,7 @@ describe('libp2p.upgrader', () => { webSockets() ], streamMuxers: [ - yamux({ - log: logger('yamux:local') - }) - // mplex() + yamux() ], connectionEncryption: [ plaintext() @@ -682,10 +678,7 @@ describe('libp2p.upgrader', () => { webSockets() ], streamMuxers: [ - yamux({ - log: logger('yamux:remote') - }) - // mplex() + yamux() ], connectionEncryption: [ plaintext()