Skip to content

Commit 6e164dc

Browse files
committedNov 21, 2011
Better, cleaner test cleanup.
1 parent 200494b commit 6e164dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎t/Workflow/Activity/DeleteExpiredSessions.t

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ $retVal = $instance1->run();
4646
is($retVal, 'complete', 'cleanup: activity complete');
4747
$retVal = $instance1->run();
4848
is($retVal, 'done', 'cleanup: activity is done');
49-
$instance1->delete;
49+
$instance1->delete('skipNotify');
5050

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

@@ -80,6 +80,7 @@ my $instance2 = WebGUI::Workflow::Instance->create($session,
8080
skipSpectreNotification => 1,
8181
}
8282
);
83+
WebGUI::Test->addToCleanup($instance2);
8384

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

0 commit comments

Comments
 (0)
Please sign in to comment.