Skip to content

Commit ce9d650

Browse files
authored
test: check build options when skipping config schema test
Check QUIC and DTLS build settings when skipping the schema test. Runtime feature helpers also depend on command-line flags. Assisted-by: Codex Signed-off-by: inoway46 <inoueyuya416@gmail.com> PR-URL: #66899 Refs: https://github.com/nodejs/node/actions/runs/39600664099/job/119224028865 Refs: https://github.com/nodejs/node/actions/runs/39594836686/job/119204469882 Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Richard Lau <richard.lau@ibm.com>
1 parent 936b20c commit ce9d650

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎test/parallel/test-config-json-schema.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ if (!common.hasFFI) {
3131

3232
// The JSON schema is generated from a build with the default configuration
3333
// options, where these are disabled and their options are not available.
34-
if (common.hasQuic || common.hasDtls || common.hasV8Sandbox) {
34+
if (process.config.variables.node_use_quic ||
35+
process.config.variables.node_use_dtls || common.hasV8Sandbox) {
3536
common.skip('this test assumes default configuration options');
3637
}
3738

0 commit comments

Comments
 (0)