mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
http2: remove --expose-http2 flag from tests, etc
Remove the --expose-http2 flag from tests and benchmarks PR-URL: https://github.com/nodejs/node/pull/15685 Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com>
This commit is contained in:
1 parent
57ab6e2a10
commit
e01daec4e1
131 files changed
+81
-138
No files matched your search
@@ -6,7 +6,7 @@ const PORT = common.PORT;
|
||||
const bench = common.createBenchmark(main, {
|
||||
n: [1e3],
|
||||
nheaders: [0, 10, 100, 1000],
|
||||
}, { flags: ['--expose-http2', '--no-warnings'] });
|
||||
}, { flags: ['--no-warnings'] });
|
||||
|
||||
function main(conf) {
|
||||
const n = +conf.n;
|
||||
|
||||
@@ -11,7 +11,7 @@ const bench = common.createBenchmark(main, {
|
||||
requests: [100, 1000, 10000, 100000, 1000000],
|
||||
streams: [100, 200, 1000],
|
||||
clients: [1, 2]
|
||||
}, { flags: ['--expose-http2', '--no-warnings'] });
|
||||
}, { flags: ['--no-warnings'] });
|
||||
|
||||
function main(conf) {
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ const bench = common.createBenchmark(main, {
|
||||
requests: [100, 1000, 10000, 100000],
|
||||
streams: [100, 200, 1000],
|
||||
clients: [1, 2]
|
||||
}, { flags: ['--expose-http2', '--no-warnings'] });
|
||||
}, { flags: ['--no-warnings'] });
|
||||
|
||||
function main(conf) {
|
||||
const n = +conf.requests;
|
||||
|
||||
@@ -7,7 +7,7 @@ const bench = common.createBenchmark(main, {
|
||||
streams: [100, 200, 1000],
|
||||
length: [64 * 1024, 128 * 1024, 256 * 1024, 1024 * 1024],
|
||||
size: [100000]
|
||||
}, { flags: ['--expose-http2', '--no-warnings'] });
|
||||
}, { flags: ['--no-warnings'] });
|
||||
|
||||
function main(conf) {
|
||||
const m = +conf.streams;
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
// Verifies that uploading data from a client works
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2 --expose-internals
|
||||
// Flags: --expose-internals
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2 --expose-internals
|
||||
// Flags: --expose-internals
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const { mustCall,
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const { mustCall, hasCrypto, skip, expectsError } = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
// Tests http2.connect()
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-http2
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
// Tests opening 100 concurrent simultaneous uploading streams over a single
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
// The --expose-http2 flag is not set
|
||||
'use strict';
|
||||
|
||||
require('../common');
|
||||
const assert = require('assert');
|
||||
|
||||
assert.throws(() => require('http2'), // eslint-disable-line crypto-check
|
||||
/^Error: Cannot find module 'http2'$/);
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
// Tests the ability to minimally request a byte range with respondWithFD
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
// Response splitting is no longer an issue with HTTP/2. The underlying
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2
|
||||
//
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Flags: --expose-http2 --expose-internals
|
||||
// Flags: --expose-internals
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
Loaded 100 of 131 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user