Browse Source

test: add crypto check to http2 tests

When building --without-ssl and running the tests some of the http2 test
fail with the following error message:

internal/util.js:82
    throw new errors.Error('ERR_NO_CRYPTO');
    ^

Error [ERR_NO_CRYPTO]: Node.js is not compiled with OpenSSL crypto
support
    at Object.assertCrypto (internal/util.js:82:11)
    at internal/http2/core.js:5:26
    at NativeModule.compile (bootstrap_node.js:586:7)
    at NativeModule.require (bootstrap_node.js:531:18)
    at http2.js:17:5
    at NativeModule.compile (bootstrap_node.js:586:7)
    at Function.NativeModule.require (bootstrap_node.js:531:18)
    at Function.Module._load (module.js:449:25)
    at Module.require (module.js:517:17)
    at require (internal/module.js:11:18)

This commit adds hasCrypto checks and skips the tests if there is no
crypto support.

PR-URL: https://github.com/nodejs/node/pull/14657
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
v6
Daniel Bevenius 8 years ago
committed by James M Snell
parent
commit
1b719fe3d7
  1. 4
      test/parallel/test-http2-binding.js
  2. 2
      test/parallel/test-http2-client-data-end.js
  3. 2
      test/parallel/test-http2-client-destroy-before-connect.js
  4. 2
      test/parallel/test-http2-client-destroy-before-request.js
  5. 2
      test/parallel/test-http2-client-destroy.js
  6. 2
      test/parallel/test-http2-client-priority-before-connect.js
  7. 2
      test/parallel/test-http2-client-rststream-before-connect.js
  8. 2
      test/parallel/test-http2-client-set-priority.js
  9. 2
      test/parallel/test-http2-client-settings-before-connect.js
  10. 2
      test/parallel/test-http2-client-shutdown-before-connect.js
  11. 2
      test/parallel/test-http2-client-socket-destroy.js
  12. 2
      test/parallel/test-http2-client-stream-destroy-before-connect.js
  13. 2
      test/parallel/test-http2-client-unescaped-path.js
  14. 2
      test/parallel/test-http2-client-upload.js
  15. 2
      test/parallel/test-http2-client-write-before-connect.js
  16. 2
      test/parallel/test-http2-compat-serverrequest-headers.js
  17. 2
      test/parallel/test-http2-compat-serverrequest.js
  18. 2
      test/parallel/test-http2-compat-serverresponse-createpushresponse.js
  19. 4
      test/parallel/test-http2-compat-serverresponse-end.js
  20. 2
      test/parallel/test-http2-compat-serverresponse-finished.js
  21. 2
      test/parallel/test-http2-compat-serverresponse-flushheaders.js
  22. 2
      test/parallel/test-http2-compat-serverresponse-headers.js
  23. 2
      test/parallel/test-http2-compat-serverresponse-statuscode.js
  24. 2
      test/parallel/test-http2-compat-serverresponse-statusmessage-property.js
  25. 2
      test/parallel/test-http2-compat-serverresponse-statusmessage.js
  26. 2
      test/parallel/test-http2-compat-serverresponse-trailers.js
  27. 7
      test/parallel/test-http2-compat-serverresponse-write-no-cb.js
  28. 2
      test/parallel/test-http2-compat-serverresponse-writehead.js
  29. 2
      test/parallel/test-http2-connect-method.js
  30. 4
      test/parallel/test-http2-connect.js
  31. 2
      test/parallel/test-http2-cookies.js
  32. 2
      test/parallel/test-http2-create-client-connect.js
  33. 2
      test/parallel/test-http2-create-client-session.js
  34. 2
      test/parallel/test-http2-date-header.js
  35. 2
      test/parallel/test-http2-dont-override.js
  36. 2
      test/parallel/test-http2-getpackedsettings.js
  37. 2
      test/parallel/test-http2-goaway-opaquedata.js
  38. 2
      test/parallel/test-http2-head-request.js
  39. 2
      test/parallel/test-http2-info-headers.js
  40. 2
      test/parallel/test-http2-max-concurrent-streams.js
  41. 2
      test/parallel/test-http2-methods.js
  42. 2
      test/parallel/test-http2-misused-pseudoheaders.js
  43. 2
      test/parallel/test-http2-multi-content-length.js
  44. 2
      test/parallel/test-http2-multiheaders.js
  45. 2
      test/parallel/test-http2-multiplex.js
  46. 2
      test/parallel/test-http2-options-max-headers-block-length.js
  47. 2
      test/parallel/test-http2-options-max-reserved-streams.js
  48. 2
      test/parallel/test-http2-padding-callback.js
  49. 2
      test/parallel/test-http2-priority-event.js
  50. 2
      test/parallel/test-http2-respond-file-204.js
  51. 2
      test/parallel/test-http2-respond-file-304.js
  52. 2
      test/parallel/test-http2-respond-file-compat.js
  53. 2
      test/parallel/test-http2-respond-file-fd-invalid.js
  54. 2
      test/parallel/test-http2-respond-file-fd-range.js
  55. 2
      test/parallel/test-http2-respond-file-fd.js
  56. 2
      test/parallel/test-http2-respond-file-push.js
  57. 2
      test/parallel/test-http2-respond-file-range.js
  58. 2
      test/parallel/test-http2-respond-file.js
  59. 2
      test/parallel/test-http2-response-splitting.js
  60. 2
      test/parallel/test-http2-server-destroy-before-additional.js
  61. 2
      test/parallel/test-http2-server-destroy-before-push.js
  62. 2
      test/parallel/test-http2-server-destroy-before-respond.js
  63. 2
      test/parallel/test-http2-server-destroy-before-write.js
  64. 2
      test/parallel/test-http2-server-push-disabled.js
  65. 2
      test/parallel/test-http2-server-push-stream.js
  66. 2
      test/parallel/test-http2-server-rst-before-respond.js
  67. 2
      test/parallel/test-http2-server-rst-stream.js
  68. 2
      test/parallel/test-http2-server-set-header.js
  69. 2
      test/parallel/test-http2-server-shutdown-before-respond.js
  70. 2
      test/parallel/test-http2-server-socket-destroy.js
  71. 2
      test/parallel/test-http2-server-socketerror.js
  72. 2
      test/parallel/test-http2-server-timeout.js
  73. 2
      test/parallel/test-http2-session-settings.js
  74. 2
      test/parallel/test-http2-session-stream-state.js
  75. 2
      test/parallel/test-http2-single-headers.js
  76. 2
      test/parallel/test-http2-status-code-invalid.js
  77. 2
      test/parallel/test-http2-status-code.js
  78. 2
      test/parallel/test-http2-timeouts.js
  79. 2
      test/parallel/test-http2-too-many-settings.js
  80. 2
      test/parallel/test-http2-trailers.js
  81. 2
      test/parallel/test-http2-window-size.js
  82. 4
      test/parallel/test-http2-withflag.js
  83. 2
      test/parallel/test-http2-write-callbacks.js
  84. 2
      test/parallel/test-http2-write-empty-string.js
  85. 2
      test/parallel/test-http2-zero-length-write.js

4
test/parallel/test-http2-binding.js

@ -1,7 +1,9 @@
// Flags: --expose-http2
'use strict';
require('../common');
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
assert.doesNotThrow(() => process.binding('http2'));

2
test/parallel/test-http2-client-data-end.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const http2 = require('http2');

2
test/parallel/test-http2-client-destroy-before-connect.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const h2 = require('http2');
const server = h2.createServer();

2
test/parallel/test-http2-client-destroy-before-request.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const h2 = require('http2');

2
test/parallel/test-http2-client-destroy.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const h2 = require('http2');

2
test/parallel/test-http2-client-priority-before-connect.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const h2 = require('http2');
const server = h2.createServer();

2
test/parallel/test-http2-client-rststream-before-connect.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const h2 = require('http2');

2
test/parallel/test-http2-client-set-priority.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const http2 = require('http2');

2
test/parallel/test-http2-client-settings-before-connect.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const h2 = require('http2');

2
test/parallel/test-http2-client-shutdown-before-connect.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const h2 = require('http2');
const server = h2.createServer();

2
test/parallel/test-http2-client-socket-destroy.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const h2 = require('http2');
const body =
'<html><head></head><body><h1>this is some data</h2></body></html>';

2
test/parallel/test-http2-client-stream-destroy-before-connect.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const h2 = require('http2');
const NGHTTP2_INTERNAL_ERROR = h2.constants.NGHTTP2_INTERNAL_ERROR;

2
test/parallel/test-http2-client-unescaped-path.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const http2 = require('http2');
const server = http2.createServer();

2
test/parallel/test-http2-client-upload.js

@ -4,6 +4,8 @@
// Verifies that uploading data from a client works
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const http2 = require('http2');
const fs = require('fs');

2
test/parallel/test-http2-client-write-before-connect.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const h2 = require('http2');

2
test/parallel/test-http2-compat-serverrequest-headers.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const h2 = require('http2');

2
test/parallel/test-http2-compat-serverrequest.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const h2 = require('http2');
const net = require('net');

2
test/parallel/test-http2-compat-serverresponse-createpushresponse.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const h2 = require('http2');

4
test/parallel/test-http2-compat-serverresponse-end.js

@ -1,7 +1,9 @@
// Flags: --expose-http2
'use strict';
const { mustCall, mustNotCall } = require('../common');
const { mustCall, mustNotCall, hasCrypto, skip } = require('../common');
if (!hasCrypto)
skip('missing crypto');
const { strictEqual } = require('assert');
const {
createServer,

2
test/parallel/test-http2-compat-serverresponse-finished.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const h2 = require('http2');

2
test/parallel/test-http2-compat-serverresponse-flushheaders.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const h2 = require('http2');

2
test/parallel/test-http2-compat-serverresponse-headers.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const h2 = require('http2');

2
test/parallel/test-http2-compat-serverresponse-statuscode.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const h2 = require('http2');

2
test/parallel/test-http2-compat-serverresponse-statusmessage-property.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const h2 = require('http2');

2
test/parallel/test-http2-compat-serverresponse-statusmessage.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const h2 = require('http2');

2
test/parallel/test-http2-compat-serverresponse-trailers.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const http2 = require('http2');

7
test/parallel/test-http2-compat-serverresponse-write-no-cb.js

@ -1,7 +1,12 @@
// Flags: --expose-http2
'use strict';
const { mustCall, mustNotCall, expectsError } = require('../common');
const { mustCall,
mustNotCall,
expectsError,
hasCrypto, skip } = require('../common');
if (!hasCrypto)
skip('missing crypto');
const { throws } = require('assert');
const { createServer, connect } = require('http2');

2
test/parallel/test-http2-compat-serverresponse-writehead.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const h2 = require('http2');

2
test/parallel/test-http2-connect-method.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const net = require('net');
const http2 = require('http2');

4
test/parallel/test-http2-connect.js

@ -1,7 +1,9 @@
// Flags: --expose-http2
'use strict';
const { mustCall } = require('../common');
const { mustCall, hasCrypto, skip } = require('../common');
if (!hasCrypto)
skip('missing crypto');
const { doesNotThrow } = require('assert');
const { createServer, connect } = require('http2');

2
test/parallel/test-http2-cookies.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const h2 = require('http2');

2
test/parallel/test-http2-create-client-connect.js

@ -4,6 +4,8 @@
// Tests http2.connect()
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const fs = require('fs');
const h2 = require('http2');
const path = require('path');

2
test/parallel/test-http2-create-client-session.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const h2 = require('http2');
const body =

2
test/parallel/test-http2-date-header.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const http2 = require('http2');

2
test/parallel/test-http2-dont-override.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const http2 = require('http2');

2
test/parallel/test-http2-getpackedsettings.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const http2 = require('http2');

2
test/parallel/test-http2-goaway-opaquedata.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const http2 = require('http2');

2
test/parallel/test-http2-head-request.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const http2 = require('http2');

2
test/parallel/test-http2-info-headers.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const h2 = require('http2');

2
test/parallel/test-http2-max-concurrent-streams.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const h2 = require('http2');

2
test/parallel/test-http2-methods.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const h2 = require('http2');

2
test/parallel/test-http2-misused-pseudoheaders.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const h2 = require('http2');

2
test/parallel/test-http2-multi-content-length.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const http2 = require('http2');
const server = http2.createServer();

2
test/parallel/test-http2-multiheaders.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const http2 = require('http2');

2
test/parallel/test-http2-multiplex.js

@ -5,6 +5,8 @@
// connection and makes sure that the data for each is appropriately echoed.
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const http2 = require('http2');

2
test/parallel/test-http2-options-max-headers-block-length.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const h2 = require('http2');

2
test/parallel/test-http2-options-max-reserved-streams.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const h2 = require('http2');
const server = h2.createServer();

2
test/parallel/test-http2-padding-callback.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const h2 = require('http2');
const { PADDING_STRATEGY_CALLBACK } = h2.constants;

2
test/parallel/test-http2-priority-event.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const h2 = require('http2');

2
test/parallel/test-http2-respond-file-204.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const http2 = require('http2');
const assert = require('assert');
const path = require('path');

2
test/parallel/test-http2-respond-file-304.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const http2 = require('http2');
const assert = require('assert');
const path = require('path');

2
test/parallel/test-http2-respond-file-compat.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const http2 = require('http2');
const path = require('path');

2
test/parallel/test-http2-respond-file-fd-invalid.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const http2 = require('http2');
const assert = require('assert');

2
test/parallel/test-http2-respond-file-fd-range.js

@ -4,6 +4,8 @@
// Tests the ability to minimally request a byte range with respondWithFD
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const http2 = require('http2');
const assert = require('assert');
const path = require('path');

2
test/parallel/test-http2-respond-file-fd.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const http2 = require('http2');
const assert = require('assert');
const path = require('path');

2
test/parallel/test-http2-respond-file-push.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const http2 = require('http2');
const assert = require('assert');
const path = require('path');

2
test/parallel/test-http2-respond-file-range.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const http2 = require('http2');
const assert = require('assert');
const path = require('path');

2
test/parallel/test-http2-respond-file.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const http2 = require('http2');
const assert = require('assert');
const path = require('path');

2
test/parallel/test-http2-response-splitting.js

@ -6,6 +6,8 @@
// contain invalid characters.
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const http2 = require('http2');
const { URL } = require('url');

2
test/parallel/test-http2-server-destroy-before-additional.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const h2 = require('http2');

2
test/parallel/test-http2-server-destroy-before-push.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const h2 = require('http2');

2
test/parallel/test-http2-server-destroy-before-respond.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const h2 = require('http2');

2
test/parallel/test-http2-server-destroy-before-write.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const h2 = require('http2');

2
test/parallel/test-http2-server-push-disabled.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const http2 = require('http2');

2
test/parallel/test-http2-server-push-stream.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const http2 = require('http2');

2
test/parallel/test-http2-server-rst-before-respond.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const h2 = require('http2');

2
test/parallel/test-http2-server-rst-stream.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const http2 = require('http2');

2
test/parallel/test-http2-server-set-header.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const http2 = require('http2');
const body =

2
test/parallel/test-http2-server-shutdown-before-respond.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const h2 = require('http2');
const server = h2.createServer();

2
test/parallel/test-http2-server-socket-destroy.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const h2 = require('http2');
const assert = require('assert');

2
test/parallel/test-http2-server-socketerror.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const http2 = require('http2');

2
test/parallel/test-http2-server-timeout.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const http2 = require('http2');
const server = http2.createServer();

2
test/parallel/test-http2-session-settings.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const h2 = require('http2');

2
test/parallel/test-http2-session-stream-state.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const h2 = require('http2');

2
test/parallel/test-http2-single-headers.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const http2 = require('http2');
const server = http2.createServer();

2
test/parallel/test-http2-status-code-invalid.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const http2 = require('http2');

2
test/parallel/test-http2-status-code.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const http2 = require('http2');

2
test/parallel/test-http2-timeouts.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const h2 = require('http2');
const server = h2.createServer();

2
test/parallel/test-http2-too-many-settings.js

@ -5,6 +5,8 @@
// settings frames will result in a throw.
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const h2 = require('http2');

2
test/parallel/test-http2-trailers.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const h2 = require('http2');
const body =

2
test/parallel/test-http2-window-size.js

@ -7,6 +7,8 @@
// on smaller / IoT platforms in case this poses problems for these targets.
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const h2 = require('http2');

4
test/parallel/test-http2-withflag.js

@ -1,7 +1,9 @@
// Flags: --expose-http2
'use strict';
require('../common');
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
assert.doesNotThrow(() => require('http2'));

2
test/parallel/test-http2-write-callbacks.js

@ -4,6 +4,8 @@
// Verifies that write callbacks are called
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const http2 = require('http2');

2
test/parallel/test-http2-write-empty-string.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const http2 = require('http2');

2
test/parallel/test-http2-zero-length-write.js

@ -2,6 +2,8 @@
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const http2 = require('http2');

Loading…
Cancel
Save