Skip to content

Commit

Permalink
fixup! lib: enable WebSocket by default
Browse files Browse the repository at this point in the history
do not load WebSocket in all tests

use global WebSocket for benchmark
  • Loading branch information
targos committed Feb 2, 2024
1 parent 68b38a6 commit 3f16766
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion benchmark/websocket/simple.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
const common = require('../common.js');
const crypto = require('crypto');
const http = require('http');
const { WebSocket } = require('../../deps/undici/undici');

const GUID = '258EAFA5-E914-47DA-95CA-C5AB0DC85B11';

Expand Down
3 changes: 0 additions & 3 deletions test/common/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,9 +369,6 @@ if (global.ReadableStream) {
global.DecompressionStream,
);
}
if (global.WebSocket) {
knownGlobals.push(WebSocket);
}

function allowGlobals(...allowlist) {
knownGlobals = knownGlobals.concat(allowlist);
Expand Down

0 comments on commit 3f16766

Please sign in to comment.