Skip to content

Commit

Permalink
test: prevent ci collision
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobheun committed Jun 29, 2018
1 parent 18ff4b9 commit 1fb66ac
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions test/peer-discovery.node.js
Expand Up @@ -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')
Expand Down Expand Up @@ -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')
}
}
}
Expand All @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit 1fb66ac

Please sign in to comment.