2015-07-10 22:02:57 -07:00
|
|
|
var streamPair = require('stream-pair')
|
2015-07-11 19:17:33 -07:00
|
|
|
var devNull = require('dev-null')
|
2015-07-10 22:02:57 -07:00
|
|
|
|
|
|
|
module.exports.all = function (test, common) {
|
|
|
|
|
2015-07-11 19:17:33 -07:00
|
|
|
test('1 stream with 10Mb file', function (t) {
|
2015-07-10 22:02:57 -07:00
|
|
|
common.setup(test, function (err, Muxer) {
|
2015-07-11 19:17:33 -07:00
|
|
|
t.ifError(err, 'should not throw')
|
2015-07-10 22:02:57 -07:00
|
|
|
var pair = streamPair.create()
|
|
|
|
|
2015-07-11 19:17:33 -07:00
|
|
|
spawnGeneration(t, Muxer, pair, pair.other, 1, [10, 10])
|
2015-07-10 22:02:57 -07:00
|
|
|
})
|
|
|
|
})
|
2015-07-11 19:17:33 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
function spawnGeneration (t, Muxer, dialerSocket, listenerSocket, nStreams, sizeWindow) {
|
|
|
|
|
|
|
|
}
|
2015-07-10 22:02:57 -07:00
|
|
|
|
2015-07-11 19:17:33 -07:00
|
|
|
function randSizeMsg (sizeWindow) {
|
|
|
|
return Math.floor(Math.random() * (sizeWindow[1] - sizeWindow[0] + 1)) + sizeWindow[0]
|
2015-07-10 22:02:57 -07:00
|
|
|
}
|