@@ -210,7 +210,10 @@ describe("Transport", () => {
210210 // these are server only
211211 if ( ! env . browser ) {
212212 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+ }
214217 const polling = new eio . transports . websocket ( {
215218 path : "/engine.io" ,
216219 hostname : "localhost" ,
@@ -269,7 +272,10 @@ describe("Transport", () => {
269272 } ) ;
270273
271274 describe ( "perMessageDeflate" , ( ) => {
272- it ( "should set threshold" , ( done ) => {
275+ it ( "should set threshold" , function ( done ) {
276+ if ( env . useBuiltinWs ) {
277+ return this . skip ( ) ;
278+ }
273279 const socket = new eio . Socket ( {
274280 transports : [ "websocket" ] ,
275281 perMessageDeflate : { threshold : 0 } ,
@@ -289,7 +295,10 @@ describe("Transport", () => {
289295 } ) ;
290296 } ) ;
291297
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+ }
293302 const socket = new eio . Socket ( { transports : [ "websocket" ] } ) ;
294303 socket . on ( "open" , ( ) => {
295304 const ws = socket . transport . ws ;
0 commit comments