fix: setting process.env to child_pocess (#24)

This commit is contained in:
horo 2020-07-17 20:38:22 +08:00 committed by GitHub
parent 16ddff4fe0
commit ea496c8572
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,5 +19,5 @@ test('wait 500 ms', async() => {
test('test runs', () => {
process.env['INPUT_MILLISECONDS'] = 500;
const ip = path.join(__dirname, 'index.js');
console.log(cp.execSync(`node ${ip}`).toString());
console.log(cp.execSync(`node ${ip}`, { env: process.env }).toString());
})