From: David Kamholz Date: Fri, 7 Jul 2006 05:57:22 +0000 (+0000) Subject: fix silly bug introduced in test X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=db0e65d2bafd64350d4e82f8fdb78c3b59df57b9;p=dbsrgits%2FDBIx-Class-Historic.git fix silly bug introduced in test --- diff --git a/t/76joins.t b/t/76joins.t index 70db683..5755953 100644 --- a/t/76joins.t +++ b/t/76joins.t @@ -142,8 +142,6 @@ cmp_ok($rs + 0, '==', 3, 'Correct number of records returned'); my $queries = 0; $schema->storage->debugcb(sub { $queries++ }); - -$queries = 0; $schema->storage->debug(1); my @cd = $rs->all; @@ -174,6 +172,7 @@ ok(eval { $cd->artist->name eq 'Caterwauler McCrae' }, 'single related column pr # start test for nested prefetch SELECT count $queries = 0; +$schema->storage->debugcb(sub { $queries++ }); $schema->storage->debug(1); $rs = $schema->resultset('Tag')->search( @@ -280,6 +279,7 @@ SKIP: { is($rs->next->name, 'Caterwauler McCrae', "Correct artist returned"); $queries = 0; +$schema->storage->debugcb(sub { $queries++ }); $schema->storage->debug(1); my $tree_like =