UNPKG

@libp2p/interface-stream-muxer-compliance-tests

Version:
15 lines (12 loc) 600 B
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) }) }) }