use warnings;
use Test::More;
use Test::Exception;
-use Test::Warn;
+use DBIx::Class::Schema::Loader::Utils 'warnings_exist_silent';
+use namespace::clean;
# use this if you keep a copy of DBD::Sybase linked to FreeTDS somewhere else
BEGIN {
my $dbh = $schema->storage->dbh;
$dbh->do("DROP TABLE mssql_loader_test3");
- warnings_exist { $schema->rescan }
+ warnings_exist_silent { $schema->rescan }
qr/^Bad table or view 'mssql_loader_test4'/, 'bad view ignored';
throws_ok {