Skip to content

Commit

Permalink
Issue #616: adapt the FixedTimeUnset() calls
Browse files Browse the repository at this point in the history
  • Loading branch information
bschmalhofer committed Nov 5, 2020
1 parent c81b832 commit 46c64e6
Show file tree
Hide file tree
Showing 20 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion scripts/test/AuthSession.t
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ for my $ModuleFile (@BackendModuleFiles) {
);
}
continue {
$Helper->FixedTimeUnset();
FixedTimeUnset();
}

# restore to the previous state is done by RestoreDatabase
Expand Down
2 changes: 1 addition & 1 deletion scripts/test/Cache.t
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ for my $ModuleFile (@BackendModuleFiles) {

# unset fixed time
if ( $FixedTimeCompatibleBackends{$Module} ) {
$Helper->FixedTimeUnset();
FixedTimeUnset();
}

my $String1 = '';
Expand Down
4 changes: 2 additions & 2 deletions scripts/test/Console/Command/Maint/Log/CommunicationLog.t
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ for my $TestCommunication (@Communications) {

$TestCommunication->{ID} = $CommunicationLogObject->CommunicationIDGet();

$HelperObject->FixedTimeUnset();
FixedTimeUnset();
}

my $RunTest = sub {
Expand Down Expand Up @@ -254,7 +254,7 @@ for my $CommunicationToTestPurge (@CommunicationsToTestPurge) {
$CommunicationLogObject->CommunicationStop( Status => $CommunicationToTestPurge->{Status} );
}
$CommunicationToTestPurge->{ID} = $CommunicationLogObject->CommunicationIDGet();
$HelperObject->FixedTimeUnset();
FixedTimeUnset();

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ for my $Module (qw(DB FS)) {
);

# unset fixed time
$Helper->FixedTimeUnset();
FixedTimeUnset();

}

Expand Down
4 changes: 2 additions & 2 deletions scripts/test/GenericAgent.t
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ for my $Test (@Tests) {
}

# Unset fixed time because the job has to run in present.
$Helper->FixedTimeUnset();
FixedTimeUnset();

# Run the job - test ticket has not to be found.
$Self->True(
Expand Down Expand Up @@ -752,7 +752,7 @@ for my $Test (@Tests) {
}

# Unset fixed time because the job has to run in present.
$Helper->FixedTimeUnset();
FixedTimeUnset();

# Run the job again - test ticket has to be found.
$Self->True(
Expand Down
2 changes: 1 addition & 1 deletion scripts/test/Language/Time.t
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ for my $Test (@Tests) {
"$Test->{Name} - get",
);

$HelperObject->FixedTimeUnset();
FixedTimeUnset();
}


Expand Down
2 changes: 1 addition & 1 deletion scripts/test/Layout/BuildDateSelection.t
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ for my $Test (@Tests) {
Objects => [ 'Kernel::Output::HTML::Layout', ],
);

$HelperObject->FixedTimeUnset();
FixedTimeUnset();
}
}

Expand Down
2 changes: 1 addition & 1 deletion scripts/test/Selenium/Agent/AgentTicketQueue.t
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ $Selenium->RunTest(
}

# Unset fixed time.
$Helper->FixedTimeUnset();
FixedTimeUnset();

}
);
Expand Down
4 changes: 2 additions & 2 deletions scripts/test/Stats/Dynamic/TicketAccountedTimeResult.t
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ for my $Ticket (@Tickets) {
push @TicketIDs, \%TicketData;
}
continue {
$Helper->FixedTimeUnset();
FixedTimeUnset();
}

my %StateList = $Kernel::OM->Get('Kernel::System::State')->StateList(
Expand Down Expand Up @@ -434,7 +434,7 @@ for my $Test (@Tests) {
}
continue {

$Helper->FixedTimeUnset();
FixedTimeUnset();

$TestCount++;
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/test/Stats/Dynamic/TicketClosedCreatedInQueue.t
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ for my $Ticket (@Tickets) {
$ClosedTickets{ $TicketData{TicketNumber} } = 1;
}

$Helper->FixedTimeUnset();
FixedTimeUnset();
}

# Create statistic
Expand Down
4 changes: 2 additions & 2 deletions scripts/test/Stats/Dynamic/TicketSolutionResponseTimeResult.t
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ for my $Ticket (@Tickets) {
push @TicketIDs, \%TicketData;
}
continue {
$Helper->FixedTimeUnset();
FixedTimeUnset();
}

my %StateList = $Kernel::OM->Get('Kernel::System::State')->StateList(
Expand Down Expand Up @@ -469,7 +469,7 @@ for my $Test (@Tests) {
}
continue {

$Helper->FixedTimeUnset();
FixedTimeUnset();

$TestCount++;
}
Expand Down
4 changes: 2 additions & 2 deletions scripts/test/Stats/Result.t
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ for my $Ticket (@Tickets) {
push @TicketIDs, \%TicketData;
}
continue {
$Helper->FixedTimeUnset();
FixedTimeUnset();
}

my %StateList = $Kernel::OM->Get('Kernel::System::State')->StateList(
Expand Down Expand Up @@ -3978,7 +3978,7 @@ for my $Test (@Tests) {
}
continue {

$Helper->FixedTimeUnset();
FixedTimeUnset();

$TestCount++;
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/test/SysConfig/DB/SettingLock.t
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ EOF

# Set time if needed
if ( $TestConfig->{FixedTimeSet} ) {
$HelperObject->FixedTimeUnset();
FixedTimeUnset();
}

# Unlock deployment each loop
Expand Down
2 changes: 1 addition & 1 deletion scripts/test/Ticket/Number/Base.t
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ for my $Test (@Tests) {
$Cleanup->();
}

$Helper->FixedTimeUnset();
FixedTimeUnset();

# _GetLastTicketNumber() tests
@Tests = (
Expand Down
2 changes: 1 addition & 1 deletion scripts/test/Ticket/TicketSearch/PendingUntilTime.t
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ for my $Test (@Tests) {
}
continue {

$Helper->FixedTimeUnset();
FixedTimeUnset();

$TestCount++;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ for my $Arg (@ArgsWithReference) {
UserID => 1,
);

$Helper->FixedTimeUnset();
FixedTimeUnset();

$Self->True(
$TicketID,
Expand Down
2 changes: 1 addition & 1 deletion scripts/test/Time/FixedTimeHelper.t
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ my $StartSystemTime = $TimeObject->SystemTime();
"Stay with increased fixed time",
);

$HelperObject->FixedTimeUnset();
FixedTimeUnset();

# Let object be destroyed at the end of this scope
$Kernel::OM->ObjectsDiscard( Objects => ['Kernel::System::UnitTest::Helper'] );
Expand Down
2 changes: 1 addition & 1 deletion scripts/test/Time/MailTimeStamp.t
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ for my $Test (@Tests) {
"$Test->{Name} ($Test->{OTOBOTimeZone}) Timestamp $Test->{TimeStampUTC}:",
);

$HelperObject->FixedTimeUnset();
FixedTimeUnset();
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ for my $Key (qw(EscalationTime EscalationResponseTime EscalationSolutionTime ))
}

# Jump back to normal time
$HelperObject->FixedTimeUnset();
FixedTimeUnset();

# reset Configs
$ConfigObject->Set(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,4 +326,4 @@ $TicketObject->TicketPendingTimeSet(
$Self->Note( Note => "computed solution time: " . localtime( $Ticket{SolutionTimeDestinationTime} ) );
}

$HelperObject->FixedTimeUnset();
FixedTimeUnset();

0 comments on commit 46c64e6

Please sign in to comment.