@libp2p/interface-stream-muxer-compliance-tests
Version:
Compliance tests for implementations of the libp2p Stream Muxer interface
15 lines (12 loc) • 600 B
text/typescript
import spawn from './spawner.js'
import type { TestSetup } from '@libp2p/interface-compliance-tests'
import type { StreamMuxer, StreamMuxerFactory, StreamMuxerInit } from '@libp2p/interface-stream-muxer'
export default (common: TestSetup<StreamMuxerFactory>): void => {
const createMuxer = async (init?: StreamMuxerInit): Promise<StreamMuxer> => {
const factory = await common.setup()
return factory.createStreamMuxer(init)
}
describe.skip('mega stress test', function () {
it('10,000 streams with 10,000 msg', async () => { await spawn(createMuxer, 10000, 10000, 5000) })
})
}