diff options
author | Rich Trott <rtrott@gmail.com> | 2015-09-27 15:31:36 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2015-10-01 20:16:35 -0700 |
commit | 02fe8215f09ce8a89a5cd4e76cbd78a59771c96e (patch) | |
tree | 5353cb92d81c803a656efee7195486bb8ba18d8c /test/sequential | |
parent | 9bd26e7ffaf34de5a083c580b51d9f443be2583c (diff) | |
download | node-new-02fe8215f09ce8a89a5cd4e76cbd78a59771c96e.tar.gz |
test: load common.js to test for global leaks
common.js contains code that checks for variables leaking into the
global namespace. Load common.js in all tests that do not
intentionally leak variables.
PR-URL: https://github.com/nodejs/node/pull/3095
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Diffstat (limited to 'test/sequential')
-rw-r--r-- | test/sequential/test-cluster-listening-port.js | 1 | ||||
-rw-r--r-- | test/sequential/test-vm-timeout-rethrow.js | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/test/sequential/test-cluster-listening-port.js b/test/sequential/test-cluster-listening-port.js index eb8a974d04..c9c6538903 100644 --- a/test/sequential/test-cluster-listening-port.js +++ b/test/sequential/test-cluster-listening-port.js @@ -1,4 +1,5 @@ 'use strict'; +require('../common'); var assert = require('assert'); var cluster = require('cluster'); var net = require('net'); diff --git a/test/sequential/test-vm-timeout-rethrow.js b/test/sequential/test-vm-timeout-rethrow.js index 4f3af900ee..dd513b5a69 100644 --- a/test/sequential/test-vm-timeout-rethrow.js +++ b/test/sequential/test-vm-timeout-rethrow.js @@ -1,4 +1,5 @@ 'use strict'; +require('../common'); var assert = require('assert'); var vm = require('vm'); var spawn = require('child_process').spawn; |