test: prevent global leak problems

This commit is contained in:
Guillermo Rauch
2014-02-10 15:52:16 -08:00
parent 9ebe35936c
commit bc937fc2fb

View File

@@ -1,6 +1,13 @@
var env = require('./support/env');
// whitelist some globals to avoid warnings
global.__eio = null;
global.WEB_SOCKET_LOGGER = null;
global.WEB_SOCKET_SUPPRESS_CROSS_DOMAIN_SWF_ERROR = null;
global.WEB_SOCKET_DISABLE_AUTO_INITIALIZATION = null;
global.WEB_SOCKET_SWF_LOCATION = null;
// node only tests
if (env.node) {
require('./url');