         test.isTrue postId
         @postId = postId
 
-    # Sleep so that observers have time to update documents
-    Meteor.setTimeout expect(), WAIT_TIME
+    # Wait so that observers have time to update documents
+    waitForDatabase test, expect
 ,
   (test, expect) ->
     @post = Post.documents.findOne @postId

      expect (error) =>
        test.isFalse error, error?.toString?() or error

    # Sleep so that observers have time to update documents
    Meteor.setTimeout expect(), WAIT_TIME
,
  (test, expect) ->
    @post = Post.documents.findOne @postId,

        test.isFalse error, error?.toString?() or error
        test.isTrue res

    # Wait so that observers have time to update documents
    waitForDatabase test, expect
,
  (test, expect) ->
    @person1 = Person.documents.findOne @person1Id,
