summaryrefslogtreecommitdiff
path: root/test/parallel/test-child-process-fork-dgram.js
diff options
context:
space:
mode:
authorSakthipriyan Vairamani <thechargingvolcano@gmail.com>2016-07-19 02:03:42 +0530
committerRich Trott <rtrott@gmail.com>2016-07-21 16:39:21 -0700
commit612307564b2f7758ad4436f95b03c05dca1198d7 (patch)
treeaef09dd1b3859f3ceaff727f1a0d971585ee15e0 /test/parallel/test-child-process-fork-dgram.js
parentc21a212bdc3a9e15f37bb6556546b3778503bcf0 (diff)
downloadnode-new-612307564b2f7758ad4436f95b03c05dca1198d7.tar.gz
test: make import common as the first line
The `test/common` module has the capability to identify if any variable is leaked to the global scope and fail the test. So that has to be imported at the beginning. PR-URL: https://github.com/nodejs/node/pull/7786 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'test/parallel/test-child-process-fork-dgram.js')
-rw-r--r--test/parallel/test-child-process-fork-dgram.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-child-process-fork-dgram.js b/test/parallel/test-child-process-fork-dgram.js
index 67a783b6b7..5a00dca066 100644
--- a/test/parallel/test-child-process-fork-dgram.js
+++ b/test/parallel/test-child-process-fork-dgram.js
@@ -13,10 +13,10 @@
* and the test will fail.
*/
+const common = require('../common');
var dgram = require('dgram');
var fork = require('child_process').fork;
var assert = require('assert');
-var common = require('../common');
if (common.isWindows) {
common.skip('Sending dgram sockets to child processes is ' +