From 9b14a5a14b3a541bc5c98bb7a891160471b11f03 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Fri, 23 May 2014 11:45:34 -0700 Subject: [PATCH] Move the two channels test to the dev appserver, since the second channel never connects in prod. --- static/test.js | 52 +++++++++++++++++++++++++------------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/static/test.js b/static/test.js index 9d9eb67..3c26ad7 100644 --- a/static/test.js +++ b/static/test.js @@ -441,32 +441,6 @@ asyncTest('sendMessage ACL', function() { }); }); -asyncTest('Two channels, one client', function() { - expect(2); - - var namespace = randstring(); - var subject = randstring(); - var message = randstring(); - - var callbacks = { - 'onMessage': function(msg) { - console.log('onMessage'); - equal(msg['subject']['name'], subject, 'subject matches'); - equal(msg['message'], message, 'message matches'); - cosmo1.shutdown(); - start(); - }, - }; - - var cosmo1 = new Cosmopolite(callbacks, null, namespace); - cosmo1.subscribe(subject).then(function() { - var cosmo2 = new Cosmopolite({}, null, namespace); - cosmo2.sendMessage(subject, message).then(function() { - cosmo2.shutdown(); - }); - }); -}); - module('dev_appserver only'); @@ -532,3 +506,29 @@ asyncTest('Profile merge', function() { cosmo.subscribe(subject, -1); }); }); + +asyncTest('Two channels, one client', function() { + expect(2); + + var namespace = randstring(); + var subject = randstring(); + var message = randstring(); + + var callbacks = { + 'onMessage': function(msg) { + console.log('onMessage'); + equal(msg['subject']['name'], subject, 'subject matches'); + equal(msg['message'], message, 'message matches'); + cosmo1.shutdown(); + start(); + }, + }; + + var cosmo1 = new Cosmopolite(callbacks, null, namespace); + cosmo1.subscribe(subject).then(function() { + var cosmo2 = new Cosmopolite({}, null, namespace); + cosmo2.sendMessage(subject, message).then(function() { + cosmo2.shutdown(); + }); + }); +});