1'use strict'; 2 3require('../common'); 4const assert = require('assert'); 5const child_process = require('child_process'); 6const path = require('path'); 7 8process.env.NODE_DEBUG = 'http'; 9const { stderr } = child_process.spawnSync(process.execPath, [ 10 path.resolve(__dirname, 'test-http-conn-reset.js'), 11], { encoding: 'utf8' }); 12 13assert(stderr.match(/Setting the NODE_DEBUG environment variable to 'http' can expose sensitive data \(such as passwords, tokens and authentication headers\) in the resulting log\./), 14 stderr); 15