diff --git a/src/utils.js b/src/utils.js index d3232ae..2f1749f 100644 --- a/src/utils.js +++ b/src/utils.js @@ -53,7 +53,7 @@ function validate (def, data) { if (!Array.isArray(data)) throw new Error('Data is not an array') def.forEach((type, index) => { if (!types[type]) { - console.error('Type %s does not exist', type) + console.error('Type %s does not exist', type) // eslint-disable-line no-console throw new Error('Type ' + type + ' does not exist') } if (!types[type](data[index])) throw new Error('Data at index ' + index + ' is invalid for type ' + type) diff --git a/test/dial.spec.js b/test/dial.spec.js index 721ba4e..2c5b7e5 100644 --- a/test/dial.spec.js +++ b/test/dial.spec.js @@ -38,7 +38,7 @@ describe('dial', () => { if (process.env.REMOTE_DNS) { // test with deployed signalling server using DNS - console.log('Using DNS:', maDNS, maDNS6) + console.log('Using DNS:', maDNS, maDNS6) // eslint-disable-line no-console ma1 = maGen(maDNS, peerId1) // ma1v6 = maGen(maDNS6, peerId1) @@ -46,7 +46,7 @@ describe('dial', () => { ma2v6 = maGen(maDNS6, peerId2) } else if (process.env.REMOTE_IP) { // test with deployed signalling server using IP - console.log('Using IP:', maRemoteIP4, maRemoteIP6) + console.log('Using IP:', maRemoteIP4, maRemoteIP6) // eslint-disable-line no-console ma1 = maGen(maRemoteIP4, peerId1) // ma1v6 = maGen(maRemoteIP6, peerId1) diff --git a/test/listen.spec.js b/test/listen.spec.js index e67d648..16b72e4 100644 --- a/test/listen.spec.js +++ b/test/listen.spec.js @@ -11,6 +11,8 @@ const multiaddr = require('multiaddr') const WebSocketStar = require('../src') +const skiptravis = process.env.TRAVIS ? it.skip : it + describe('listen', () => { let ws @@ -51,7 +53,7 @@ describe('listen', () => { // TODO ? Should this apply ? }) - it('listen on IPv6 addr', (done) => { + skiptravis('listen on IPv6 addr', (done) => { const listener = ws.createListener((conn) => {}) listener.listen(mav6, (err) => {