Skip to content

Commit

Permalink
fix!: support yamux wherever mplex is supported (libp2p#1578)
Browse files Browse the repository at this point in the history
  • Loading branch information
maschad committed Apr 29, 2023
1 parent 3115aea commit ec41f09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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\"",
Expand Down
11 changes: 2 additions & 9 deletions test/upgrading/upgrader.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down Expand Up @@ -665,10 +664,7 @@ describe('libp2p.upgrader', () => {
webSockets()
],
streamMuxers: [
yamux({
log: logger('yamux:local')
})
// mplex()
yamux()
],
connectionEncryption: [
plaintext()
Expand All @@ -682,10 +678,7 @@ describe('libp2p.upgrader', () => {
webSockets()
],
streamMuxers: [
yamux({
log: logger('yamux:remote')
})
// mplex()
yamux()
],
connectionEncryption: [
plaintext()
Expand Down

0 comments on commit ec41f09

Please sign in to comment.