Change tests to use the automatic backup of Settings in END blocks.

This commit is contained in:
Colin Kuskie 2009-03-30 20:41:02 +00:00
parent 6f3aae261b
commit 4e78593395
23 changed files with 13 additions and 93 deletions

View file

@ -28,7 +28,6 @@ my $startingTime = $session->datetime->time();
my $numTests = 5; # increment this value for each test you create
plan tests => 1 + $numTests;
my $origPassiveProfiling = $session->setting->get('passiveProfilingEnabled');
my $loaded = use_ok('WebGUI::PassiveProfiling');
my $versionTag = WebGUI::VersionTag->getWorking($session);
@ -122,7 +121,6 @@ cmp_bag(
}
END {
$session->setting->set('passiveProfilingEnabled', $origPassiveProfiling);
$session->db->write('delete from passiveProfileLog where dateOfEntry >= ?',[$startingTime-1]);
$versionTag->rollback;
}