From 8dc509f68850d9c1feaf2b9f1aabbea348834b82 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Tue, 18 Aug 2015 21:22:50 -0700 Subject: [PATCH] fix(karma): corrected race condition with RX loading RX was loaded twice. Once by karma and once by system.js This seemed to create a race condition and Rx.Subject was not available. Serving but not loading seems to fix the issue. --- karma-js.conf.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/karma-js.conf.js b/karma-js.conf.js index db3f081e96..ba4e6e5310 100644 --- a/karma-js.conf.js +++ b/karma-js.conf.js @@ -21,7 +21,7 @@ module.exports = function(config) { 'node_modules/es6-module-loader/dist/es6-module-loader-sans-promises.src.js', // Including systemjs because it defines `__eval`, which produces correct stack traces. 'node_modules/systemjs/dist/system.src.js', - 'node_modules/rx/dist/rx.js', + {pattern: 'node_modules/rx/dist/rx.js', included: false, watched: false, served: true}, 'node_modules/reflect-metadata/Reflect.js', 'tools/build/file2modulename.js', 'test-main.js',