8 use DBIC::SqlMakerTest;
13 local $SIG{__WARN__} = sub {};
14 require DBIx::Class::Storage::DBI;
16 my $ping = \&DBIx::Class::Storage::DBI::_ping;
18 *DBIx::Class::Storage::DBI::_ping = sub {
25 # We do not count pings during deploy() because of the flux
26 # around sqlt. Eventually there should be no pings at all
27 my $schema = DBICTest->init_schema( sqlite_use_file => 1, no_populate => 1 );
30 local $TODO = 'Unable to fix before proper deploy() error handling';
31 is ($ping_count, 0, 'no _ping() calls during deploy');
35 DBICTest->populate_schema ($schema);
37 # perform some operations and make sure they don't ping
39 $schema->resultset('CD')->create({
40 cdid => 6, artist => 3, title => 'mtfnpy', year => 2009
43 $schema->resultset('CD')->create({
44 cdid => 7, artist => 3, title => 'mtfnpy2', year => 2009
47 $schema->storage->_dbh->disconnect;
49 $schema->resultset('CD')->create({
50 cdid => 8, artist => 3, title => 'mtfnpy3', year => 2009
53 $schema->storage->_dbh->disconnect;
56 $schema->resultset('CD')->create({
57 cdid => 9, artist => 3, title => 'mtfnpy4', year => 2009
61 is $ping_count, 0, 'no _ping() calls';