Permalink
Browse files

test document order

  • Loading branch information...
1 parent 2990590 commit babe62f91ad278dc703137924569ce7d1dd43765 @kraih committed Feb 9, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 t/cursor.t
View
4 t/cursor.t
@@ -230,8 +230,8 @@ my $mango2 = Mango->new($ENV{TEST_ONLINE});
my $collection2 = $mango2->db->collection('cursor_test');
$collection2->insert([{test => 1}, {test => 2}]);
$cursor = $collection->find({})->tailable(1);
-ok $cursor->next->{test}, 'right document';
-ok $cursor->next->{test}, 'right document';
+is $cursor->next->{test}, 1, 'right document';
+is $cursor->next->{test}, 2, 'right document';
$fail = undef;
my ($added, $tail);
$delay = Mojo::IOLoop->delay(

0 comments on commit babe62f

Please sign in to comment.