Skip to content

Commit 1730550

Browse files
committed
Skip test impl
1 parent 5698c80 commit 1730550

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

test/senso/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-env mocha */
2-
const { wait, startDriver, connectWS, expectEvent } = require('../utils')
2+
const { wait, startDriver, connectWS, expectEvent, skipTestOnMacOSinCI } = require('../utils')
33
const expect = require('chai').expect
44

55
const mock = require('./mock')
@@ -213,6 +213,8 @@ describe('Basic functionality', () => {
213213
})
214214

215215
it('Can discover mock Senso', async function () {
216+
// bonjour / mDNS does not seem to work on Github's macOS runners
217+
skipTestOnMacOSinCI(this)
216218
this.timeout(6000)
217219

218220
// connect with Senso WS

test/utils.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,14 @@ module.exports = {
4848
}
4949
})
5050
})
51+
},
52+
53+
skipTestOnMacOSinCI: function (test) {
54+
const isMac = process.platform === 'darwin'
55+
const isGitHubActions = process.env.GITHUB_ACTIONS === 'true'
56+
57+
if (isMac && isGitHubActions) {
58+
test.skip()
59+
}
5160
}
5261
}

0 commit comments

Comments
 (0)