From bc937fc2fb44a8ac1d9982d5637ba789ebcdd0ab Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Mon, 10 Feb 2014 15:52:16 -0800 Subject: [PATCH] test: prevent global leak problems --- test/index.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/index.js b/test/index.js index f58f2044..bc1e7ba3 100644 --- a/test/index.js +++ b/test/index.js @@ -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');