Skip to content

Commit

Permalink
Issue #87: undef $main::Helper is useless
Browse files Browse the repository at this point in the history
as $Helper is usually a lexical var in the test scripts
  • Loading branch information
bschmalhofer committed Jul 1, 2020
1 parent ec6b0ed commit 525910f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Kernel/System/UnitTest/RegisterDriver.pm
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,13 @@ sub import {
END {
# trigger Kernel::System::UnitTest::Helper::DESTROY()
# perform cleanup actions, including some tests, in Kernel::System::UnitTest::Helper::DESTROY
undef $main::Helper;
$Kernel::OM->ObjectsDiscard(
Objects => ['Kernel::System::UnitTest::Helper'],
);

# print the plan
my $Driver = $Kernel::OM->Get( 'Kernel::System::UnitTest::Driver' );
$Driver->DoneTesting();

undef $Kernel::OM;
}

1;

0 comments on commit 525910f

Please sign in to comment.