From: Luke Saunders Date: Thu, 8 Jun 2006 09:29:43 +0000 (+0000) Subject: stopped test relying on order of unordered search X-Git-Tag: v0.07002~75^2~126 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=10481a5db37de1f8e87c94f73863033777b7456d;p=dbsrgits%2FDBIx-Class.git stopped test relying on order of unordered search --- diff --git a/t/90join_torture.t b/t/90join_torture.t index daf1c64..d2cde4f 100644 --- a/t/90join_torture.t +++ b/t/90join_torture.t @@ -64,7 +64,7 @@ my $prod_first = $prod_rs2->first; is($prod_first->id, '1', 'somewhat pointless search on rel with order_by on it okay'); my $prod_map_rs = $schema->resultset("Artist")->find(1)->cds->search_related('cd_to_producer', {}, { join => 'producer', prefetch => 'producer' }); -is($prod_map_rs->next->producer->producerid, '1', 'search related with prefetch okay'); +ok($prod_map_rs->next->producer, 'search related with prefetch okay'); my $stupid = $schema->resultset("Artist")->search_related('artist_undirected_maps', {}, { prefetch => 'artist1' })->search_related('mapped_artists')->search_related('cds', {'cds.cdid' => '2'}, { prefetch => 'tracks' }); #use Data::Dumper; warn Dumper($stupid->{attrs});