diff --git a/ci/Jenkinsfile b/ci/Jenkinsfile index c128776f7a..a7da2e54f3 100644 --- a/ci/Jenkinsfile +++ b/ci/Jenkinsfile @@ -1,2 +1,2 @@ // Warning: This file is automatically synced from https://github.com/ipfs/ci-sync so if you want to change it, please change it there and ask someone to sync all repositories. -javascript(['nodejs_versions': ['8.11.3']]) +javascript() diff --git a/package.json b/package.json index 7fd6accc53..b935b68ae1 100644 --- a/package.json +++ b/package.json @@ -73,7 +73,7 @@ "pull-serializer": "~0.3.2", "pull-stream": "^3.6.8", "sinon": "^5.0.7", - "wrtc": "0.1.1" + "wrtc": "~0.1.6" }, "contributors": [ "Chris Bratlien ", diff --git a/test/peer-discovery.node.js b/test/peer-discovery.node.js index f1eec24a9e..3b47b559ea 100644 --- a/test/peer-discovery.node.js +++ b/test/peer-discovery.node.js @@ -6,6 +6,7 @@ chai.use(require('dirty-chai')) const expect = chai.expect const signalling = require('libp2p-webrtc-star/src/sig-server') const parallel = require('async/parallel') +const crypto = require('crypto') const createNode = require('./utils/create-node') const echo = require('./utils/echo') @@ -62,7 +63,9 @@ describe('peer discovery', () => { config: { peerDiscovery: { mdns: { - enabled: true + enabled: true, + // use a random tag to prevent CI collision + serviceTag: crypto.randomBytes(10).toString('hex') } } } @@ -81,7 +84,15 @@ describe('peer discovery', () => { // TODO needs a delay (this test is already long) describe.skip('WebRTCStar', () => { - setup({ webRTCStar: true }) + setup({ + config: { + peerDiscovery: { + webRTCStar: { + enabled: true + } + } + } + }) it('find a peer', function (done) { this.timeout(15 * 1000) @@ -98,7 +109,9 @@ describe('peer discovery', () => { config: { peerDiscovery: { mdns: { - enabled: true + enabled: true, + // use a random tag to prevent CI collision + serviceTag: crypto.randomBytes(10).toString('hex') }, webRTCStar: { enabled: true