> mocha test\http-api\interface\pubsub.js --timeout 50000 .pubsub callback API Swarm listening on /ip4/127.0.0.1/tcp/63388/ipfs/QmRMEw2PzEd2Usd36nW1LFDjupZU11uMfWsuChSWbyMMLu API is listening on: /ip4/127.0.0.1/tcp/63389 Gateway (readonly) is listening on: /ip4/127.0.0.1/tcp/63390 Swarm listening on /ip4/127.0.0.1/tcp/63394/ipfs/QmeCkxnSZr7bQcjikSQ7QT7LkMPMU5rYzXuhdUfVsNVteE API is listening on: /ip4/127.0.0.1/tcp/63395 Gateway (readonly) is listening on: /ip4/127.0.0.1/tcp/63396 Swarm listening on /ip4/127.0.0.1/tcp/63398/ipfs/QmVgjL7pBxJhZ8uLSGh1WuvhyCR6Et8XYCEDTBS8XbwuPK API is listening on: /ip4/127.0.0.1/tcp/63399 Gateway (readonly) is listening on: /ip4/127.0.0.1/tcp/63400 single node .publish √ errors on string messags 1) message from buffer .subscribe 2) to one topic 3) attaches multiple event listeners 4) discover options multiple nodes connected .peers 5) does not error when not subscribed to a topic 6) doesn't return extra peers 7) returns peers for a topic - one peer 8) lists peers for a topic - multiple peers .ls 9) empty() list when no topics are subscribed 10) list with 1 subscribed topic 11) list with 3 subscribed topics multiple nodes 12) receive messages from different node 13) round trips a non-utf8 binary buffer correctly 14) receive multiple messages load tests 15) call publish 1k times 16) send/receive 10k messages 17) call subscribe/unsubscribe 1k times promise API Swarm listening on /ip4/127.0.0.1/tcp/63428/ipfs/QmS84wv1sdDB62EqadMvZo51Mw41yuBcAhWh7kDAB3QmYC API is listening on: /ip4/127.0.0.1/tcp/63429 Gateway (readonly) is listening on: /ip4/127.0.0.1/tcp/63430 18) .subscribe and .publish 19) .peers 20) .ls 1 passing (28s) 20 failing 1) .pubsub callback API single node .publish message from buffer: Error: Cannot read property 'publish' of undefined at parseError (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\request-api.js:17:17) at ClientRequest. (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\request-api.js:40:14) at HTTPParser.parserOnIncomingClient (_http_client.js:549:21) at HTTPParser.parserOnHeadersComplete (_http_common.js:116:23) at Socket.socketOnData (_http_client.js:438:20) at addChunk (_stream_readable.js:263:12) at readableAddChunk (_stream_readable.js:250:11) at Socket.Readable.push (_stream_readable.js:208:10) at TCP.onread (net.js:597:20) 2) .pubsub callback API single node .subscribe to one topic: Uncaught AssertionError: expected [Error: Cannot read property 'listenerCount' of undefined] to not exist at ipfs1.pubsub.subscribe (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\interface-ipfs-core\src\pubsub.js:138:34) at subscriptions.(anonymous function).send.andTransform (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\pubsub.js:142:16) at send (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\request-api.js:227:16) at f (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\once\once.js:25:25) at streamToJsonValue (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\request-api.js:28:5) at streamToValue (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\stream-to-json-value.js:30:5) at concat (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\stream-to-value.js:12:22) at ConcatStream. (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\index.js:36:43) at finishMaybe (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\node_modules\readable-stream\lib\_stream_writable.js:607:14) at afterWrite (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\node_modules\readable-stream\lib\_stream_writable.js:470:3) at _combinedTickCallback (internal/process/next_tick.js:144:20) at process._tickDomainCallback (internal/process/next_tick.js:218:9) 3) .pubsub callback API single node .subscribe attaches multiple event listeners: Uncaught AssertionError: expected [Error: Cannot read property 'listenerCount' of undefined] to not exist at parallel (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\interface-ipfs-core\src\pubsub.js:179:34) at C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\internal\parallel.js:39:9 at C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\internal\once.js:12:16 at iteratorCallback (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\eachOf.js:58:13) at C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\internal\onlyOnce.js:12:16 at C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\internal\parallel.js:36:13 at subscriptions.(anonymous function).send.andTransform (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\pubsub.js:142:16) at send (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\request-api.js:227:16) at f (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\once\once.js:25:25) at streamToJsonValue (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\request-api.js:28:5) at streamToValue (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\stream-to-json-value.js:30:5) at concat (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\stream-to-value.js:12:22) at ConcatStream. (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\index.js:36:43) at finishMaybe (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\node_modules\readable-stream\lib\_stream_writable.js:607:14) at afterWrite (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\node_modules\readable-stream\lib\_stream_writable.js:470:3) at _combinedTickCallback (internal/process/next_tick.js:144:20) at process._tickDomainCallback (internal/process/next_tick.js:218:9) 4) .pubsub callback API single node .subscribe discover options: Uncaught AssertionError: expected [Error: Cannot read property 'listenerCount' of undefined] to not exist at ipfs1.pubsub.subscribe (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\interface-ipfs-core\src\pubsub.js:197:34) at subscriptions.(anonymous function).send.andTransform (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\pubsub.js:142:16) at send (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\request-api.js:227:16) at f (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\once\once.js:25:25) at streamToJsonValue (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\request-api.js:28:5) at streamToValue (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\stream-to-json-value.js:30:5) at concat (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\stream-to-value.js:12:22) at ConcatStream. (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\index.js:36:43) at finishMaybe (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\node_modules\readable-stream\lib\_stream_writable.js:607:14) at afterWrite (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\node_modules\readable-stream\lib\_stream_writable.js:470:3) at _combinedTickCallback (internal/process/next_tick.js:144:20) at process._tickDomainCallback (internal/process/next_tick.js:218:9) 5) .pubsub callback API multiple nodes connected .peers does not error when not subscribed to a topic: Uncaught AssertionError: expected [Error: Cannot read property 'peers' of undefined] to not exist at ipfs1.pubsub.peers (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\interface-ipfs-core\src\pubsub.js:223:34) at send (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\request-api.js:227:16) at f (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\once\once.js:25:25) at streamToJsonValue (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\request-api.js:28:5) at streamToValue (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\stream-to-json-value.js:30:5) at concat (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\stream-to-value.js:12:22) at ConcatStream. (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\index.js:36:43) at finishMaybe (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\node_modules\readable-stream\lib\_stream_writable.js:607:14) at afterWrite (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\node_modules\readable-stream\lib\_stream_writable.js:470:3) at _combinedTickCallback (internal/process/next_tick.js:144:20) at process._tickDomainCallback (internal/process/next_tick.js:218:9) 6) .pubsub callback API multiple nodes connected .peers doesn't return extra peers: Uncaught AssertionError: expected [Error: Cannot read property 'listenerCount' of undefined] to not exist at series (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\interface-ipfs-core\src\pubsub.js:246:34) at C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\internal\parallel.js:39:9 at C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\internal\once.js:12:16 at iterateeCallback (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\internal\eachOfLimit.js:44:17) at C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\internal\onlyOnce.js:12:16 at C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\internal\parallel.js:36:13 at subscriptions.(anonymous function).send.andTransform (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\pubsub.js:142:16) at send (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\request-api.js:227:16) at f (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\once\once.js:25:25) at streamToJsonValue (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\request-api.js:28:5) at streamToValue (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\stream-to-json-value.js:30:5) at concat (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\stream-to-value.js:12:22) at ConcatStream. (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\index.js:36:43) at finishMaybe (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\node_modules\readable-stream\lib\_stream_writable.js:607:14) at afterWrite (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\node_modules\readable-stream\lib\_stream_writable.js:470:3) at _combinedTickCallback (internal/process/next_tick.js:144:20) at process._tickDomainCallback (internal/process/next_tick.js:218:9) 7) .pubsub callback API multiple nodes connected .peers returns peers for a topic - one peer: Uncaught AssertionError: expected [Error: Cannot read property 'listenerCount' of undefined] to not exist at series (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\interface-ipfs-core\src\pubsub.js:275:34) at C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\internal\parallel.js:39:9 at C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\internal\once.js:12:16 at iterateeCallback (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\internal\eachOfLimit.js:44:17) at C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\internal\onlyOnce.js:12:16 at C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\internal\parallel.js:36:13 at subscriptions.(anonymous function).send.andTransform (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\pubsub.js:142:16) at send (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\request-api.js:227:16) at f (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\once\once.js:25:25) at streamToJsonValue (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\request-api.js:28:5) at streamToValue (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\stream-to-json-value.js:30:5) at concat (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\stream-to-value.js:12:22) at ConcatStream. (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\index.js:36:43) at finishMaybe (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\node_modules\readable-stream\lib\_stream_writable.js:607:14) at afterWrite (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\node_modules\readable-stream\lib\_stream_writable.js:470:3) at _combinedTickCallback (internal/process/next_tick.js:144:20) at process._tickDomainCallback (internal/process/next_tick.js:218:9) 8) .pubsub callback API multiple nodes connected .peers lists peers for a topic - multiple peers: Uncaught AssertionError: expected [Error: Cannot read property 'listenerCount' of undefined] to not exist at series (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\interface-ipfs-core\src\pubsub.js:299:34) at C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\internal\parallel.js:39:9 at C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\internal\once.js:12:16 at iterateeCallback (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\internal\eachOfLimit.js:44:17) at C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\internal\onlyOnce.js:12:16 at C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\internal\parallel.js:36:13 at subscriptions.(anonymous function).send.andTransform (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\pubsub.js:142:16) at send (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\request-api.js:227:16) at f (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\once\once.js:25:25) at streamToJsonValue (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\request-api.js:28:5) at streamToValue (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\stream-to-json-value.js:30:5) at concat (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\stream-to-value.js:12:22) at ConcatStream. (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\index.js:36:43) at finishMaybe (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\node_modules\readable-stream\lib\_stream_writable.js:607:14) at afterWrite (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\node_modules\readable-stream\lib\_stream_writable.js:470:3) at _combinedTickCallback (internal/process/next_tick.js:144:20) at process._tickDomainCallback (internal/process/next_tick.js:218:9) 9) .pubsub callback API multiple nodes connected .ls empty() list when no topics are subscribed: Uncaught AssertionError: expected [Error: Cannot read property 'subscriptions' of undefined] to not exist at ipfs1.pubsub.ls (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\interface-ipfs-core\src\pubsub.js:312:34) at send (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\request-api.js:227:16) at f (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\once\once.js:25:25) at streamToJsonValue (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\request-api.js:28:5) at streamToValue (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\stream-to-json-value.js:30:5) at concat (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\stream-to-value.js:12:22) at ConcatStream. (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\index.js:36:43) at finishMaybe (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\node_modules\readable-stream\lib\_stream_writable.js:607:14) at afterWrite (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\node_modules\readable-stream\lib\_stream_writable.js:470:3) at _combinedTickCallback (internal/process/next_tick.js:144:20) at process._tickDomainCallback (internal/process/next_tick.js:218:9) 10) .pubsub callback API multiple nodes connected .ls list with 1 subscribed topic: Uncaught AssertionError: expected [Error: Cannot read property 'listenerCount' of undefined] to not exist at ipfs1.pubsub.subscribe (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\interface-ipfs-core\src\pubsub.js:323:34) at subscriptions.(anonymous function).send.andTransform (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\pubsub.js:142:16) at send (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\request-api.js:227:16) at f (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\once\once.js:25:25) at streamToJsonValue (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\request-api.js:28:5) at streamToValue (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\stream-to-json-value.js:30:5) at concat (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\stream-to-value.js:12:22) at ConcatStream. (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\index.js:36:43) at finishMaybe (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\node_modules\readable-stream\lib\_stream_writable.js:607:14) at afterWrite (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\node_modules\readable-stream\lib\_stream_writable.js:470:3) at _combinedTickCallback (internal/process/next_tick.js:144:20) at process._tickDomainCallback (internal/process/next_tick.js:218:9) 11) .pubsub callback API multiple nodes connected .ls list with 3 subscribed topics: Uncaught AssertionError: expected [Error: Cannot read property 'listenerCount' of undefined] to not exist at each (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\interface-ipfs-core\src\pubsub.js:350:34) at C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\internal\once.js:12:16 at iteratorCallback (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\eachOf.js:58:13) at C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\internal\onlyOnce.js:12:16 at subscriptions.(anonymous function).send.andTransform (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\pubsub.js:142:16) at send (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\request-api.js:227:16) at f (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\once\once.js:25:25) at streamToJsonValue (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\request-api.js:28:5) at streamToValue (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\stream-to-json-value.js:30:5) at concat (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\stream-to-value.js:12:22) at ConcatStream. (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\index.js:36:43) at finishMaybe (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\node_modules\readable-stream\lib\_stream_writable.js:607:14) at afterWrite (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\node_modules\readable-stream\lib\_stream_writable.js:470:3) at _combinedTickCallback (internal/process/next_tick.js:144:20) at process._tickDomainCallback (internal/process/next_tick.js:218:9) 12) .pubsub callback API multiple nodes connected multiple nodes receive messages from different node: Uncaught AssertionError: expected [Error: Cannot read property 'listenerCount' of undefined] to not exist at series (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\interface-ipfs-core\src\pubsub.js:395:34) at C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\internal\parallel.js:39:9 at C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\internal\once.js:12:16 at iterateeCallback (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\internal\eachOfLimit.js:44:17) at C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\internal\onlyOnce.js:12:16 at C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\internal\parallel.js:36:13 at subscriptions.(anonymous function).send.andTransform (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\pubsub.js:142:16) at send (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\request-api.js:227:16) at f (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\once\once.js:25:25) at streamToJsonValue (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\request-api.js:28:5) at streamToValue (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\stream-to-json-value.js:30:5) at concat (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\stream-to-value.js:12:22) at ConcatStream. (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\index.js:36:43) at finishMaybe (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\node_modules\readable-stream\lib\_stream_writable.js:607:14) at afterWrite (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\node_modules\readable-stream\lib\_stream_writable.js:470:3) at _combinedTickCallback (internal/process/next_tick.js:144:20) at process._tickDomainCallback (internal/process/next_tick.js:218:9) 13) .pubsub callback API multiple nodes connected multiple nodes round trips a non-utf8 binary buffer correctly: Uncaught AssertionError: expected [Error: Cannot read property 'listenerCount' of undefined] to not exist at series (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\interface-ipfs-core\src\pubsub.js:436:34) at C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\internal\parallel.js:39:9 at C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\internal\once.js:12:16 at iterateeCallback (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\internal\eachOfLimit.js:44:17) at C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\internal\onlyOnce.js:12:16 at C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\internal\parallel.js:36:13 at subscriptions.(anonymous function).send.andTransform (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\pubsub.js:142:16) at send (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\request-api.js:227:16) at f (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\once\once.js:25:25) at streamToJsonValue (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\request-api.js:28:5) at streamToValue (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\stream-to-json-value.js:30:5) at concat (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\stream-to-value.js:12:22) at ConcatStream. (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\index.js:36:43) at finishMaybe (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\node_modules\readable-stream\lib\_stream_writable.js:607:14) at afterWrite (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\node_modules\readable-stream\lib\_stream_writable.js:470:3) at _combinedTickCallback (internal/process/next_tick.js:144:20) at process._tickDomainCallback (internal/process/next_tick.js:218:9) 14) .pubsub callback API multiple nodes connected multiple nodes receive multiple messages: Uncaught AssertionError: expected [Error: Cannot read property 'listenerCount' of undefined] to not exist at series (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\interface-ipfs-core\src\pubsub.js:475:34) at C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\internal\parallel.js:39:9 at C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\internal\once.js:12:16 at iterateeCallback (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\internal\eachOfLimit.js:44:17) at C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\internal\onlyOnce.js:12:16 at C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\internal\parallel.js:36:13 at subscriptions.(anonymous function).send.andTransform (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\pubsub.js:142:16) at send (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\request-api.js:227:16) at f (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\once\once.js:25:25) at streamToJsonValue (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\request-api.js:28:5) at streamToValue (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\stream-to-json-value.js:30:5) at concat (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\stream-to-value.js:12:22) at ConcatStream. (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\index.js:36:43) at finishMaybe (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\node_modules\readable-stream\lib\_stream_writable.js:607:14) at afterWrite (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\node_modules\readable-stream\lib\_stream_writable.js:470:3) at _combinedTickCallback (internal/process/next_tick.js:144:20) at process._tickDomainCallback (internal/process/next_tick.js:218:9) 15) .pubsub callback API multiple nodes connected load tests call publish 1k times: Error: Cannot read property 'publish' of undefined at parseError (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\request-api.js:17:17) at ClientRequest. (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\request-api.js:40:14) at HTTPParser.parserOnIncomingClient (_http_client.js:549:21) at HTTPParser.parserOnHeadersComplete (_http_common.js:116:23) at Socket.socketOnData (_http_client.js:438:20) at addChunk (_stream_readable.js:263:12) at readableAddChunk (_stream_readable.js:250:11) at Socket.Readable.push (_stream_readable.js:208:10) at TCP.onread (net.js:597:20) 16) .pubsub callback API multiple nodes connected load tests send/receive 10k messages: Uncaught AssertionError: expected [Error: Cannot read property 'listenerCount' of undefined] to not exist at series (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\interface-ipfs-core\src\pubsub.js:556:34) at C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\internal\parallel.js:39:9 at C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\internal\once.js:12:16 at iterateeCallback (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\internal\eachOfLimit.js:44:17) at C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\internal\onlyOnce.js:12:16 at C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\internal\parallel.js:36:13 at subscriptions.(anonymous function).send.andTransform (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\pubsub.js:142:16) at send (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\request-api.js:227:16) at f (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\once\once.js:25:25) at streamToJsonValue (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\request-api.js:28:5) at streamToValue (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\stream-to-json-value.js:30:5) at concat (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\stream-to-value.js:12:22) at ConcatStream. (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\index.js:36:43) at finishMaybe (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\node_modules\readable-stream\lib\_stream_writable.js:607:14) at afterWrite (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\node_modules\readable-stream\lib\_stream_writable.js:470:3) at _combinedTickCallback (internal/process/next_tick.js:144:20) at process._tickDomainCallback (internal/process/next_tick.js:218:9) 17) .pubsub callback API multiple nodes connected load tests call subscribe/unsubscribe 1k times: Uncaught AssertionError: expected [Error: Cannot read property 'listenerCount' of undefined] to not exist at whilst (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\interface-ipfs-core\src\pubsub.js:587:36) at C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\internal\onlyOnce.js:12:16 at next (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\async\whilst.js:65:25) at subscriptions.(anonymous function).send.andTransform (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\pubsub.js:142:16) at send (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\request-api.js:227:16) at f (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\once\once.js:25:25) at streamToJsonValue (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\request-api.js:28:5) at streamToValue (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\stream-to-json-value.js:30:5) at concat (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\stream-to-value.js:12:22) at ConcatStream. (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\index.js:36:43) at finishMaybe (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\node_modules\readable-stream\lib\_stream_writable.js:607:14) at afterWrite (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\concat-stream\node_modules\readable-stream\lib\_stream_writable.js:470:3) at _combinedTickCallback (internal/process/next_tick.js:144:20) at process._tickDomainCallback (internal/process/next_tick.js:218:9) 18) .pubsub promise API .subscribe and .publish: Error: Cannot read property 'listenerCount' of undefined at parseError (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\request-api.js:17:17) at ClientRequest. (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\request-api.js:40:14) at HTTPParser.parserOnIncomingClient (_http_client.js:549:21) at HTTPParser.parserOnHeadersComplete (_http_common.js:116:23) at Socket.socketOnData (_http_client.js:438:20) at addChunk (_stream_readable.js:263:12) at readableAddChunk (_stream_readable.js:250:11) at Socket.Readable.push (_stream_readable.js:208:10) at TCP.onread (net.js:597:20) 19) .pubsub promise API .peers: Error: Cannot read property 'listenerCount' of undefined at parseError (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\request-api.js:17:17) at ClientRequest. (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\request-api.js:40:14) at HTTPParser.parserOnIncomingClient (_http_client.js:549:21) at HTTPParser.parserOnHeadersComplete (_http_common.js:116:23) at Socket.socketOnData (_http_client.js:438:20) at addChunk (_stream_readable.js:263:12) at readableAddChunk (_stream_readable.js:250:11) at Socket.Readable.push (_stream_readable.js:208:10) at TCP.onread (net.js:597:20) 20) .pubsub promise API .ls: Error: Cannot read property 'subscriptions' of undefined at parseError (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\request-api.js:17:17) at ClientRequest. (C:\Users\Owner\Documents\GitHub\js-ipfs\node_modules\ipfs-api\src\utils\request-api.js:40:14) at HTTPParser.parserOnIncomingClient (_http_client.js:549:21) at HTTPParser.parserOnHeadersComplete (_http_common.js:116:23) at Socket.socketOnData (_http_client.js:438:20) at addChunk (_stream_readable.js:263:12) at readableAddChunk (_stream_readable.js:250:11) at Socket.Readable.push (_stream_readable.js:208:10) at TCP.onread (net.js:597:20)