Sha256: 7f33eabc4807fd1094a7f6263f28180bafdf93282575a0bfee38b268000b1cc6

Contents?: true

Size: 556 Bytes

Versions: 119

Compression:

Stored size: 556 Bytes

Contents

var common = require('../common');
var assert = common.assert;
var fake = common.fake.create();
var DelayedStream = common.DelayedStream;
var Stream = require('stream').Stream;

(function testHandleSourceErrors() {
  var source = new Stream();
  var delayedStream = DelayedStream.create(source, {pauseStream: false});

  // We deal with this by attaching a no-op listener to 'error' on the source
  // when creating a new DelayedStream. This way error events on the source
  // won't throw.
  source.emit('error', new Error('something went wrong'));
})();

Version data entries

119 entries across 105 versions & 6 rubygems

Version Path
trusty-festivity-extension-2.6.2 node_modules/bower/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-handle-source-errors.js
trusty-festivity-extension-2.6.1 node_modules/bower/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-handle-source-errors.js
trusty-festivity-extension-2.6 node_modules/bower/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-handle-source-errors.js
trusty-festivity-extension-2.5.19 node_modules/bower/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-handle-source-errors.js
trusty-festivity-extension-2.5.18 node_modules/bower/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-handle-source-errors.js
trusty-festivity-extension-2.5.17 node_modules/bower/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-handle-source-errors.js
trusty-festivity-extension-2.5.16 node_modules/bower/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-handle-source-errors.js
trusty-festivity-extension-2.5.15 node_modules/bower/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-handle-source-errors.js
trusty-festivity-extension-2.5.14 node_modules/bower/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-handle-source-errors.js
trusty-festivity-extension-2.5.13 node_modules/bower/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-handle-source-errors.js
trusty-festivity-extension-2.5.12 node_modules/bower/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-handle-source-errors.js
trusty-festivity-extension-2.5.11 node_modules/bower/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-handle-source-errors.js
trusty-festivity-extension-2.5.10 node_modules/bower/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-handle-source-errors.js
trusty-festivity-extension-2.5.9 node_modules/bower/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-handle-source-errors.js
trusty-festivity-extension-2.5.8 node_modules/bower/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-handle-source-errors.js
trusty-festivity-extension-2.5.7 node_modules/bower/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-handle-source-errors.js
trusty-festivity-extension-2.5.6 node_modules/bower/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-handle-source-errors.js
trusty-festivity-extension-2.5.5 node_modules/bower/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-handle-source-errors.js
trusty-festivity-extension-2.5.4 node_modules/bower/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-handle-source-errors.js
trusty-festivity-extension-2.5.3 node_modules/bower/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-handle-source-errors.js