1 var common = require('../common');
2 var assert = common.assert;
3 var CombinedStream = common.CombinedStream;
4 var fs = require('fs');
6 var FILE1 = common.dir.fixture + '/file1.txt';
7 var FILE2 = common.dir.fixture + '/file2.txt';
8 var EXPECTED = fs.readFileSync(FILE1) + fs.readFileSync(FILE2);
10 (function testDelayedStreams() {
11 var combinedStream = CombinedStream.create({pauseStreams: false, maxDataSize: 20736});
12 combinedStream.append(fs.createReadStream(FILE1));
13 combinedStream.append(fs.createReadStream(FILE2));
16 combinedStream.on('error', function(err) {
20 process.on('exit', function() {
22 assert.ok(gotErr.message.match(/bytes/));