git ssb

2+

Dominic / pull-stream



Commit afd50019f28e08e55d71a9e1062ece706f728b63

Add failing test for flattening stream of broken streams

Jan Bölsche committed on 9/9/2015, 7:13:27 PM
Parent: 9cefb1fbc7f7c49a114bd09131273c22eac191b3

Files changed

test/flatten.jschanged
test/flatten.jsView
@@ -52,5 +52,21 @@
5252 )
5353
5454 })
5555
56+test.only('flatten stream of broken streams', function (t) {
57+ var _err = new Error('I am broken');
58+ pull(
59+ pull.values([
60+ pull.Source(function read(abort, cb) {
61+ cb(_err)
62+ })
63+ ]),
64+ pull.flatten(),
65+ pull.onEnd(function (err) {
66+ t.equal(err, _err)
67+ t.end()
68+ })
69+ )
5670
71+})
72+

Built with git-ssb-web