fix mistake in WebGUI::Test
This commit is contained in:
parent
4c18ba3563
commit
8c2c2f0a8d
1 changed files with 3 additions and 1 deletions
|
|
@ -139,6 +139,8 @@ If true, the session won't be registered for automatic deletion.
|
|||
=cut
|
||||
|
||||
sub newSession {
|
||||
shift
|
||||
if eval { $_[0]->isa($CLASS) };
|
||||
my $noCleanup = shift;
|
||||
my $pseudoRequest = WebGUI::PseudoRequest->new;
|
||||
require WebGUI::Session;
|
||||
|
|
@ -885,7 +887,7 @@ This is a class method.
|
|||
my @guarded;
|
||||
sub addToCleanup {
|
||||
shift
|
||||
if try { $_[0]->isa($CLASS) };
|
||||
if eval { $_[0]->isa($CLASS) };
|
||||
push @guarded, cleanupGuard(@_);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue