chore: update aegir and fix lint

This commit is contained in:
David Dias
2017-03-16 15:56:47 +00:00
parent ee7f3ee975
commit b5bdcb84bb
2 changed files with 10 additions and 10 deletions

View File

@ -22,16 +22,16 @@ module.exports = (muxer, nStreams, nMsg, done, limit) => {
const dialer = muxer.dialer(dialerSocket)
listener.on('stream', (stream) => {
expect(stream).to.exist
expect(stream).to.exist // eslint-disable-line
check()
pull(
stream,
pull.through((chunk) => {
expect(chunk).to.exist
expect(chunk).to.exist // eslint-disable-line
check()
}),
pull.onEnd((err) => {
expect(err).to.not.exist
expect(err).to.not.exist // eslint-disable-line
check()
pull(pull.empty(), stream)
})
@ -45,9 +45,9 @@ module.exports = (muxer, nStreams, nMsg, done, limit) => {
const spawnStream = (n, cb) => {
const stream = dialer.newStream((err) => {
expect(err).to.not.exist
expect(err).to.not.exist // eslint-disable-line
check()
expect(stream).to.exist
expect(stream).to.exist // eslint-disable-line
check()
pull(
generate(0, (s, cb) => {
@ -57,7 +57,7 @@ module.exports = (muxer, nStreams, nMsg, done, limit) => {
}),
stream,
pull.collect((err, res) => {
expect(err).to.not.exist
expect(err).to.not.exist // eslint-disable-line
check()
expect(res).to.be.eql([])
check()