From 2f697d1c84e62e2375fc841f2b34edf8be4d0e1d Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Thu, 3 Oct 2019 19:32:15 +0200 Subject: [PATCH] test: fix test-process-versions for QUIC PR-URL: https://github.com/nodejs/quic/pull/149 Reviewed-By: James M Snell --- test/parallel/test-process-versions.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-process-versions.js b/test/parallel/test-process-versions.js index 194704f9e1..f0aac8deda 100644 --- a/test/parallel/test-process-versions.js +++ b/test/parallel/test-process-versions.js @@ -11,14 +11,12 @@ const expected_keys = [ 'v8', 'zlib', 'nghttp2', - 'nghttp3', 'napi', 'llhttp' ]; if (common.hasCrypto) { expected_keys.push('openssl'); - expected_keys.push('ngtcp2'); } if (common.hasIntl) { @@ -28,6 +26,11 @@ if (common.hasIntl) { expected_keys.push('unicode'); } +if (common.hasQuic) { + expected_keys.push('ngtcp2'); + expected_keys.push('nghttp3'); +} + expected_keys.sort(); const actual_keys = Object.keys(process.versions).sort();