File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ use OpenQA::Test::TimeLimit '20';
1919use OpenQA::Test::Case;
2020use Mojo::File ' path' ;
2121use List::Util ' min' ;
22- use Try::Tiny;
2322
2423plan skip_all => ' set TEST_PG to e.g. "DBI:Pg:dbname=test" to enable this test' unless $ENV {TEST_PG };
2524
@@ -46,11 +45,8 @@ my $dh = DBIx::Class::DeploymentHandler->new(
4645 databases => ' PostgreSQL' ,
4746 force_overwrite => 0,
4847 });
49- my $deployed_version ;
50- try {
51- $deployed_version = $dh -> version_storage-> database_version;
52- };
53- ok(!$deployed_version , ' DB not deployed by plain schema connection with deploy => 0' );
48+ throws_ok { $dh -> version_storage-> database_version } ' DBIx::Class::Exception' ,
49+ ' DB not deployed by plain schema connection with deploy => 0' ;
5450
5551my $ret = $schema -> deploy;
5652ok($dh -> version_storage-> database_version, ' DB deployed' );
You can’t perform that action at this time.
0 commit comments