[Rt-commit] rt branch, 4.4/sla-test-use-fixed-time, created. rt-4.2.12-353-gad0f2ef
? sunnavy
sunnavy at bestpractical.com
Fri Oct 30 10:31:54 EDT 2015
The branch, 4.4/sla-test-use-fixed-time has been created
at ad0f2ef283f76106ae7fb449a95b4f50b676e9a1 (commit)
- Log -----------------------------------------------------------------
commit ad0f2ef283f76106ae7fb449a95b4f50b676e9a1
Author: sunnavy <sunnavy at bestpractical.com>
Date: Fri Oct 30 22:26:43 2015 +0800
use set_fixed_time time to make sure time is accurate
set_absolute_time doesn't pause the time but set_fixed_time does
Fixes: I#31362
diff --git a/t/sla/business_hours.t b/t/sla/business_hours.t
index 510faeb..6e64782 100644
--- a/t/sla/business_hours.t
+++ b/t/sla/business_hours.t
@@ -42,7 +42,7 @@ diag 'check business hours' if $ENV{'TEST_VERBOSE'};
},
);
- set_absolute_time('2007-01-01T00:00:00Z');
+ set_fixed_time('2007-01-01T00:00:00Z');
my $ticket = RT::Ticket->new($RT::SystemUser);
my ($id) = $ticket->Create( Queue => 'General', Subject => 'xxx' );
diff --git a/t/sla/queue.t b/t/sla/queue.t
index 622d21f..a782530 100644
--- a/t/sla/queue.t
+++ b/t/sla/queue.t
@@ -32,7 +32,7 @@ diag 'check set of Due date with Queue default SLA' if $ENV{'TEST_VERBOSE'};
);
- set_absolute_time('2007-01-01T00:00:00Z');
+ set_fixed_time('2007-01-01T00:00:00Z');
my $time = time;
my $ticket = RT::Ticket->new($RT::SystemUser);
($id) = $ticket->Create( Queue => 'General', Subject => 'xxx' );
diff --git a/t/sla/starts.t b/t/sla/starts.t
index 4769c62..80f52a9 100644
--- a/t/sla/starts.t
+++ b/t/sla/starts.t
@@ -43,7 +43,7 @@ diag 'check Starts date' if $ENV{'TEST_VERBOSE'};
);
for my $time ( keys %time ) {
- set_absolute_time($time);
+ set_fixed_time($time);
my $ticket = RT::Ticket->new($RT::SystemUser);
my ($id) = $ticket->Create( Queue => 'General', Subject => 'xxx' );
ok $id, "created ticket #$id";
diff --git a/t/sla/timezone.t b/t/sla/timezone.t
index 8edf894..4ec7837 100644
--- a/t/sla/timezone.t
+++ b/t/sla/timezone.t
@@ -22,7 +22,7 @@ no warnings 'once';
},
);
-set_absolute_time('2007-01-01T22:00:00Z');
+set_fixed_time('2007-01-01T22:00:00Z');
diag 'check dates in US queue' if $ENV{'TEST_VERBOSE'};
{
-----------------------------------------------------------------------
More information about the rt-commit
mailing list