summaryrefslogtreecommitdiff
path: root/test/sequential/test-child-process-execsync.js
diff options
context:
space:
mode:
authorVse Mozhet Byt <vsemozhetbyt@gmail.com>2017-07-15 03:30:28 +0300
committerMyles Borins <mylesborins@google.com>2017-09-19 09:14:42 -0400
commit38ae5c4e34bb3395eb567185ceef12fc47771344 (patch)
tree47655e3d4ac200419d2c58dc992c785099a65c56 /test/sequential/test-child-process-execsync.js
parent792acc17bf0f8573f97d80528c2fa677b9f84966 (diff)
downloadnode-new-38ae5c4e34bb3395eb567185ceef12fc47771344.tar.gz
doc, lib, test: do not re-require needlessly
PR-URL: https://github.com/nodejs/node/pull/14244 Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com>
Diffstat (limited to 'test/sequential/test-child-process-execsync.js')
-rw-r--r--test/sequential/test-child-process-execsync.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/sequential/test-child-process-execsync.js b/test/sequential/test-child-process-execsync.js
index 61e3bf60f7..cccd3b7e77 100644
--- a/test/sequential/test-child-process-execsync.js
+++ b/test/sequential/test-child-process-execsync.js
@@ -2,8 +2,7 @@
const common = require('../common');
const assert = require('assert');
-const execSync = require('child_process').execSync;
-const execFileSync = require('child_process').execFileSync;
+const { execFileSync, execSync } = require('child_process');
const TIMER = 200;
const SLEEP = 2000;