@@ -168,29 +168,29 @@ describe('session', function () {
168168 console . log ( 'Application protocol is not implemented skipping' )
169169 return // not implemented is also fine
170170 }
171-
172171 expect ( client . protocol ) . to . equal ( undefined )
173172 await client . closed
174173 } )
174+ if ( browser !== 'chromium' || browser !== 'firefox' || browser !== 'webkit' ) {
175+ it ( 'should error when connecting with a bad certificate (non serverCertificateHashes)' , async ( ) => {
176+ client = new WebTransport ( `${ process . env . SERVER_URL } /session_close` , {
177+ // @ts -ignore
178+ forceReliable
179+ } )
175180
176- it ( 'should error when connecting with a bad certificate (non serverCertificateHashes)' , async ( ) => {
177- client = new WebTransport ( `${ process . env . SERVER_URL } /session_close` , {
178- // @ts -ignore
179- forceReliable
180- } )
181-
182- const [ closedResult , readyResult ] = await Promise . all ( [
183- client . closed . catch ( ( err ) => err ) ,
184- client . ready . catch ( ( err ) => err )
185- ] )
181+ const [ closedResult , readyResult ] = await Promise . all ( [
182+ client . closed . catch ( ( err ) => err ) ,
183+ client . ready . catch ( ( err ) => err )
184+ ] )
186185
187- expect ( closedResult )
188- . to . be . a ( 'WebTransportError' )
189- . with . property ( 'message' , handshakemess )
190- expect ( readyResult )
191- . to . be . a ( 'WebTransportError' )
192- . with . property ( 'message' , handshakemess )
193- } )
186+ expect ( closedResult )
187+ . to . be . a ( 'WebTransportError' )
188+ . with . property ( 'message' , handshakemess )
189+ expect ( readyResult )
190+ . to . be . a ( 'WebTransportError' )
191+ . with . property ( 'message' , handshakemess )
192+ } )
193+ }
194194
195195 if (
196196 process . env . USE_POLYFILL !== 'true' &&
0 commit comments