@@ -210,7 +210,10 @@ describe("Transport", () => {
210
210
// these are server only
211
211
if ( ! env . browser ) {
212
212
describe ( "options" , ( ) => {
213
- it ( "should accept an `agent` option for WebSockets" , ( done ) => {
213
+ it ( "should accept an `agent` option for WebSockets" , function ( done ) {
214
+ if ( env . useBuiltinWs ) {
215
+ return this . skip ( ) ;
216
+ }
214
217
const polling = new eio . transports . websocket ( {
215
218
path : "/engine.io" ,
216
219
hostname : "localhost" ,
@@ -269,7 +272,10 @@ describe("Transport", () => {
269
272
} ) ;
270
273
271
274
describe ( "perMessageDeflate" , ( ) => {
272
- it ( "should set threshold" , ( done ) => {
275
+ it ( "should set threshold" , function ( done ) {
276
+ if ( env . useBuiltinWs ) {
277
+ return this . skip ( ) ;
278
+ }
273
279
const socket = new eio . Socket ( {
274
280
transports : [ "websocket" ] ,
275
281
perMessageDeflate : { threshold : 0 } ,
@@ -289,7 +295,10 @@ describe("Transport", () => {
289
295
} ) ;
290
296
} ) ;
291
297
292
- it ( "should not compress when the byte size is below threshold" , ( done ) => {
298
+ it ( "should not compress when the byte size is below threshold" , function ( done ) {
299
+ if ( env . useBuiltinWs ) {
300
+ return this . skip ( ) ;
301
+ }
293
302
const socket = new eio . Socket ( { transports : [ "websocket" ] } ) ;
294
303
socket . on ( "open" , ( ) => {
295
304
const ws = socket . transport . ws ;
0 commit comments