File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,10 @@ var http = require('http')
7
7
var request = require ( 'supertest' )
8
8
var zlib = require ( 'zlib' )
9
9
10
+ var describeHttp2 = describe . skip
10
11
try {
11
12
var http2 = require ( 'http2' )
13
+ describeHttp2 = describe
12
14
} catch ( err ) {
13
15
if ( err ) {
14
16
console . log ( 'http2 tests disabled.' )
@@ -309,7 +311,7 @@ describe('compression()', function () {
309
311
. expect ( 200 , done )
310
312
} )
311
313
312
- if ( http2 ) {
314
+ describeHttp2 ( ' http2' , function ( ) {
313
315
it ( 'should work with http2 server' , function ( done ) {
314
316
var server = createHttp2Server ( { threshold : 0 } , function ( req , res ) {
315
317
res . setHeader ( 'Content-Type' , 'text/plain' )
@@ -328,7 +330,7 @@ describe('compression()', function () {
328
330
request . end ( )
329
331
} )
330
332
} )
331
- }
333
+ } )
332
334
333
335
describe ( 'threshold' , function ( ) {
334
336
it ( 'should not compress responses below the threshold size' , function ( done ) {
You can’t perform that action at this time.
0 commit comments