[Rt-commit] rtir branch, 4.0/loose-condition-for-slow-test-server, created. 4.0.1rc1-61-gf816e029

? sunnavy sunnavy at bestpractical.com
Tue Apr 24 12:59:45 EDT 2018


The branch, 4.0/loose-condition-for-slow-test-server has been created
        at  f816e029ec177e1917f9fd56b7ff25889daf60e1 (commit)

- Log -----------------------------------------------------------------
commit f816e029ec177e1917f9fd56b7ff25889daf60e1
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Wed Apr 25 00:53:25 2018 +0800

    Enlarge time difference for slow test servers
    
    The test fails sometimes because of the heavy load of the test server.
    With this change, we can also easily find the real time difference.

diff --git a/t/dates/started.t b/t/dates/started.t
index 06c14941..00136dfa 100644
--- a/t/dates/started.t
+++ b/t/dates/started.t
@@ -79,7 +79,12 @@ diag "started date of an IR" if $ENV{'TEST_VERBOSE'};
     my $ir = RT::Ticket->new( $RT::SystemUser );
     $ir->Load( $ir_id );
     is($ir->id, $ir_id, 'loaded ir');
-    ok( abs($ir->StartedObj->Unix - $ir->CreatedObj->Unix) <= 2, 'for an IR started date == linking to inc time');
+    ok(
+        abs( $ir->StartedObj->Unix - $ir->CreatedObj->Unix ) <= 4,
+        'for an IR started date == linking to inc time: '
+          . $ir->StartedObj->Unix . ' VS '
+          . $ir->CreatedObj->Unix
+    );
 }
 
 diag "started date of a countermeasure" if $ENV{'TEST_VERBOSE'};

-----------------------------------------------------------------------


More information about the rt-commit mailing list