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';
19
19
use OpenQA::Test::Case;
20
20
use Mojo::File ' path' ;
21
21
use List::Util ' min' ;
22
- use Try::Tiny;
23
22
24
23
plan skip_all => ' set TEST_PG to e.g. "DBI:Pg:dbname=test" to enable this test' unless $ENV {TEST_PG };
25
24
@@ -46,11 +45,8 @@ my $dh = DBIx::Class::DeploymentHandler->new(
46
45
databases => ' PostgreSQL' ,
47
46
force_overwrite => 0,
48
47
});
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' ;
54
50
55
51
my $ret = $schema -> deploy;
56
52
ok($dh -> version_storage-> database_version, ' DB deployed' );
You can’t perform that action at this time.
0 commit comments