Skip to content
This repository has been archived by the owner on Dec 11, 2017. It is now read-only.

Commit

Permalink
test document order
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 9, 2013
1 parent 2990590 commit babe62f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/cursor.t
Expand Up @@ -230,8 +230,8 @@ my $mango2 = Mango->new($ENV{TEST_ONLINE});
my $collection2 = $mango2->db->collection('cursor_test'); my $collection2 = $mango2->db->collection('cursor_test');
$collection2->insert([{test => 1}, {test => 2}]); $collection2->insert([{test => 1}, {test => 2}]);
$cursor = $collection->find({})->tailable(1); $cursor = $collection->find({})->tailable(1);
ok $cursor->next->{test}, 'right document'; is $cursor->next->{test}, 1, 'right document';
ok $cursor->next->{test}, 'right document'; is $cursor->next->{test}, 2, 'right document';
$fail = undef; $fail = undef;
my ($added, $tail); my ($added, $tail);
$delay = Mojo::IOLoop->delay( $delay = Mojo::IOLoop->delay(
Expand Down

0 comments on commit babe62f

Please sign in to comment.