X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fprefetch%2Fvia_search_related.t;h=d838ad18badea89ad4106db18d1985f1a42c0b4b;hb=9fd5c112aed0aa0734266ccbc2b66a3e37d62ce2;hp=1942c1421b81dbbc1456327b7ebcd26e9880eef6;hpb=b9df8e39d03e6da167b2598f6ee70fb16c069112;p=dbsrgits%2FDBIx-Class.git diff --git a/t/prefetch/via_search_related.t b/t/prefetch/via_search_related.t index 1942c14..d838ad1 100644 --- a/t/prefetch/via_search_related.t +++ b/t/prefetch/via_search_related.t @@ -129,8 +129,6 @@ lives_ok (sub { is($rs->count, 1, 'distinct with prefetch (count)'); TODO: { - local $TODO = "This makes another 2 trips to the database, it can't be right"; - $queries = 0; $schema->storage->debugcb ($debugcb); $schema->storage->debug (1); @@ -139,6 +137,7 @@ lives_ok (sub { is($rs->search_related('cds')->all, 2, 'prefetched distinct with prefetch (objects)'); is($rs->search_related('cds')->count, 2, 'prefetched distinct with prefetch (count)'); + local $TODO = "This makes another 2 trips to the database, it can't be right"; is ($queries, 0, 'No extra queries fired (prefetch survives search_related)'); $schema->storage->debugcb (undef);