Backport (3-0-x) - test: Upgrade spec dependencies (#13328)
* package: Update mocha, mocha-junit-reporter * package: Update graceful-fs, multiparty, q, walkdir * package: Update basic-auth * package: Update ws * package: Update dbus-native * package: Upgrade yargs * lock: Run `npm audit fix` * wrench: Fix websocket API change
This commit is contained in:
parent
128a03450a
commit
a0e37d1383
3 changed files with 381 additions and 478 deletions
|
@ -955,8 +955,8 @@ describe('chromium feature', () => {
|
|||
const port = server.address().port
|
||||
wss = new WebSocketServer({ server: server })
|
||||
wss.on('error', done)
|
||||
wss.on('connection', (ws) => {
|
||||
if (ws.upgradeReq.headers['user-agent']) {
|
||||
wss.on('connection', (ws, upgradeReq) => {
|
||||
if (upgradeReq.headers['user-agent']) {
|
||||
done()
|
||||
} else {
|
||||
done('user agent is empty')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue