Better, cleaner test cleanup.
This commit is contained in:
parent
200494b28d
commit
6e164dc2dd
1 changed files with 2 additions and 1 deletions
|
|
@ -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');
|
||||
|
||||
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue