Change tests to use the automatic backup of Settings in END blocks.
This commit is contained in:
parent
6f3aae261b
commit
4e78593395
23 changed files with 13 additions and 93 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue