7 use DBIC::SqlMakerTest;
12 local $SIG{__WARN__} = sub {};
13 require DBIx::Class::Storage::DBI;
15 my $ping = \&DBIx::Class::Storage::DBI::_ping;
17 *DBIx::Class::Storage::DBI::_ping = sub {
24 # measure pings around deploy() separately
25 my $schema = DBICTest->init_schema( sqlite_use_file => 1, no_populate => 1 );
27 is ($ping_count, 0, 'no _ping() calls during deploy');
32 DBICTest->populate_schema ($schema);
34 # perform some operations and make sure they don't ping
36 $schema->resultset('CD')->create({
37 cdid => 6, artist => 3, title => 'mtfnpy', year => 2009
40 $schema->resultset('CD')->create({
41 cdid => 7, artist => 3, title => 'mtfnpy2', year => 2009
44 $schema->storage->_dbh->disconnect;
46 $schema->resultset('CD')->create({
47 cdid => 8, artist => 3, title => 'mtfnpy3', year => 2009
50 $schema->storage->_dbh->disconnect;
53 $schema->resultset('CD')->create({
54 cdid => 9, artist => 3, title => 'mtfnpy4', year => 2009
58 is $ping_count, 0, 'no _ping() calls';