Use better cleanup technology.

This commit is contained in:
Colin Kuskie 2009-09-25 19:45:02 -07:00
parent 16ac69c0d7
commit d088386e2c

View file

@ -69,6 +69,9 @@ my $workflow = WebGUI::Workflow->create($session,
mode => 'realtime',
},
);
my $guard0 = cleanupGuard($workflow);
my $guard1 = cleanupGuard($cart1);
my $guard2 = cleanupGuard($cart2);
my $cartNuker = $workflow->addActivity('WebGUI::Workflow::Activity::RemoveOldCarts');
$cartNuker->set('cartTimeout', 3600);
@ -103,8 +106,4 @@ cmp_bag(
END {
$instance1->delete('skipNotify');
$workflow->delete;
$cart1->delete;
$cart2->delete;
$donation->purge;
}