node/test/parallel/test-next-tick-doesnt-hang.js
Rich Trott 9faf4c6fcf 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>
2015-10-02 13:39:27 +10:00

10 lines
241 B
JavaScript

'use strict';
/*
* This test verifies that having a single nextTick statement and nothing else
* does not hang the event loop. If this test times out it has failed.
*/
require('../common');
process.nextTick(function() {
// Nothing
});