mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Don’t create Connection until livedata test runs
for “livedata - publisher errors”
This commit is contained in:
@@ -526,16 +526,18 @@ if (Meteor.isClient) {
|
||||
]);
|
||||
|
||||
testAsyncMulti("livedata - publisher errors", (function () {
|
||||
// Use a separate connection so that we can safely check to see if
|
||||
// conn._subscriptions is empty.
|
||||
var conn = new LivedataTest.Connection('/',
|
||||
{reloadWithOutstanding: true});
|
||||
var collName = Random.id();
|
||||
var coll = new Meteor.Collection(collName, {connection: conn});
|
||||
var conn, collName, coll;
|
||||
var errorFromRerun;
|
||||
var gotErrorFromStopper = false;
|
||||
return [
|
||||
function (test, expect) {
|
||||
// Use a separate connection so that we can safely check to see if
|
||||
// conn._subscriptions is empty.
|
||||
conn = new LivedataTest.Connection('/',
|
||||
{reloadWithOutstanding: true});
|
||||
collName = Random.id();
|
||||
coll = new Meteor.Collection(collName, {connection: conn});
|
||||
|
||||
var testSubError = function (options) {
|
||||
conn.subscribe("publisherErrors", collName, options, {
|
||||
onReady: expect(),
|
||||
|
||||
Reference in New Issue
Block a user