From: Peter Rabbitson Date: Thu, 10 Jun 2010 18:08:21 +0000 (+0200) Subject: Test for more internal object leaks (fails) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=dc35bbe6c1643c77b033d4e9f45daa6a8e4184e4;p=dbsrgits%2FDBIx-Class-Historic.git Test for more internal object leaks (fails) --- diff --git a/t/52cycle.t b/t/52cycle.t index ba7fdd8..b64be5c 100644 --- a/t/52cycle.t +++ b/t/52cycle.t @@ -21,8 +21,18 @@ my $weak; { my $s = $weak->{schema} = DBICTest->init_schema; + ok ($s->storage->connected, 'we are connected'); memory_cycle_ok($s, 'No cycles in schema'); + my $storage = $weak->{storage} = $s->storage; + memory_cycle_ok($storage, 'No cycles in storage'); + + my $dbh = $weak->{dbh} = $s->storage->_get_dbh; + memory_cycle_ok($dbh, 'No cycles in DBI handle'); + + my $sqla = $weak->{sqla} = $s->storage->sql_maker; + memory_cycle_ok($sqla, 'No cycles in SQL maker'); + my $rs = $weak->{resultset} = $s->resultset ('Artist'); memory_cycle_ok($rs, 'No cycles in resultset');