Skip to content

Commit

Permalink
Item14237: Fixed incorrect exception validation
Browse files Browse the repository at this point in the history
  • Loading branch information
vrurg committed May 12, 2018
1 parent 883d21f commit 439dffc
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions UnitTestContrib/test/unit/FuncTests.pm
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ use Foswiki::Func();
use Foswiki::AccessControlException;
use Try::Tiny;

use Moo;
use namespace::clean;
use Foswiki::Class;
extends qw( FoswikiFnTestCase );

has tmpdatafile => ( is => 'rw', );
Expand Down Expand Up @@ -348,7 +347,7 @@ sub test_Item9021 {
}
catch {
my $e = $_;
if ( !ref($e) || $e->isa('Foswiki::Exception::Fatal') ) {
if ( !ref($e) ) {
Foswiki::Exception::Fatal->rethrow($e);
}
my $errStr = $e->stringify;
Expand Down Expand Up @@ -382,7 +381,7 @@ sub test_createWeb_InvalidBase {
}
catch {
my $e = $_;
if ( !ref($e) || $e->isa('Foswiki::Exception::Fatal') ) {
if ( !ref($e) ) {
Foswiki::Exception::Fatal->rethrow($e);
}
my $errStr = $e->stringify;
Expand Down Expand Up @@ -411,7 +410,7 @@ sub test_createWeb_hierarchyDisabled {
}
catch {
my $e = $_;
if ( !ref($e) || $e->isa('Foswiki::Exception::Fatal') ) {
if ( !ref($e) ) {
Foswiki::Exception::Fatal->rethrow($e);
}
my $errStr = $e->stringify;
Expand Down

0 comments on commit 439dffc

Please sign in to comment.