File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,7 @@ assert.equal Document._delayed.length, 0
7
7
assert _.isEqual Document.list, []
8
8
assert _.isEqual Document._collections, {}
9
9
10
- if Meteor.isServer
11
- globalTestTriggerCounters = {}
10
+ globalTestTriggerCounters = {}
12
11
13
12
class Post extends Document
14
13
# Other fields:
@@ -370,15 +369,13 @@ if Meteor.isServer
370
369
handles = []
371
370
for document in Document.list
372
371
do (document) ->
373
- initializing = true
374
372
handles.push document.documents.find({}).observeChanges
375
373
added: (id, fields) ->
376
- newTimeout() unless initializing
374
+ newTimeout()
377
375
changed: (id, fields) ->
378
376
newTimeout()
379
377
removed: (id) ->
380
378
newTimeout()
381
- initializing = false
382
379
future.wait()
383
380
for handle in handles
384
381
handle.stop()
@@ -20904,6 +20901,10 @@ testAsyncMulti 'peerdb - bulk insert', [
20904
20901
20905
20902
# Wait so that observers have time to update documents
20906
20903
waitForDatabase test, expect
20904
+ ,
20905
+ (test, expect) ->
20906
+ # We sleep a bit so that all changes get to the client, when rnning on the client.
20907
+ Meteor.setTimeout expect(), 200
20907
20908
,
20908
20909
(test, expect) ->
20909
20910
docs = Recursive.documents.find(
You can’t perform that action at this time.
0 commit comments