X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class.git;a=blobdiff_plain;f=t%2Fprefetch%2Fvia_search_related.t;h=d838ad18badea89ad4106db18d1985f1a42c0b4b;hp=1942c1421b81dbbc1456327b7ebcd26e9880eef6;hb=9fd5c112aed0aa0734266ccbc2b66a3e37d62ce2;hpb=dd5b7bd404adf28c65fb0c579a1058a71c4b64f2 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);