mirror of
https://github.com/fluencelabs/js-libp2p-interfaces
synced 2025-05-15 21:11:20 +00:00
Remove console.logs (#47)
This commit is contained in:
parent
6f6f1912b4
commit
8d93b6e586
@ -119,7 +119,6 @@ module.exports = (common) => {
|
|||||||
series(count.map((i) => (cb) => {
|
series(count.map((i) => (cb) => {
|
||||||
parallel([
|
parallel([
|
||||||
(cb) => listener.once('stream', (stream) => {
|
(cb) => listener.once('stream', (stream) => {
|
||||||
console.log('pipe')
|
|
||||||
expect(stream).to.exist.mark()
|
expect(stream).to.exist.mark()
|
||||||
pull(stream, stream)
|
pull(stream, stream)
|
||||||
cb()
|
cb()
|
||||||
@ -137,24 +136,13 @@ module.exports = (common) => {
|
|||||||
cb(null, val)
|
cb(null, val)
|
||||||
}, i * 10)
|
}, i * 10)
|
||||||
}),
|
}),
|
||||||
pull.through((val) => console.log('send', val)),
|
|
||||||
conn,
|
conn,
|
||||||
pull.through((val) => console.log('recv', val)),
|
|
||||||
pull.collect((err, data) => {
|
pull.collect((err, data) => {
|
||||||
console.log('end', i)
|
|
||||||
expect(err).to.not.exist.mark()
|
expect(err).to.not.exist.mark()
|
||||||
expect(data).to.be.eql([Buffer('hello')]).mark()
|
expect(data).to.be.eql([Buffer('hello')]).mark()
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
listener.on('close', () => {
|
|
||||||
console.log('closed listener')
|
|
||||||
})
|
|
||||||
|
|
||||||
dialer.end(() => {
|
|
||||||
console.log('CLOSED')
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user