Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Better, cleaner test cleanup.
  • Loading branch information
perlDreamer committed Nov 21, 2011
1 parent 200494b commit 6e164dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion t/Workflow/Activity/DeleteExpiredSessions.t
Expand Up @@ -46,7 +46,7 @@ $retVal = $instance1->run();
is($retVal, 'complete', 'cleanup: activity complete');
$retVal = $instance1->run();
is($retVal, 'done', 'cleanup: activity is done');
$instance1->delete;
$instance1->delete('skipNotify');

my $origSessionTimeout = $session->setting->get('sessionTimeout');

Expand Down Expand Up @@ -80,6 +80,7 @@ my $instance2 = WebGUI::Workflow::Instance->create($session,
skipSpectreNotification => 1,
}
);
WebGUI::Test->addToCleanup($instance2);

my $counter = 0;
PAUSE: while ($retVal = $instance2->run()) {
Expand Down

0 comments on commit 6e164dc

Please sign in to comment.