[Rt-commit] rt branch, 4.4-trunk, updated. rt-4.4.4-81-gdd396c5661

? sunnavy sunnavy at bestpractical.com
Wed Jan 8 09:36:17 EST 2020


The branch, 4.4-trunk has been updated
       via  dd396c5661d12511f5516cc4b426ef118ad67aab (commit)
      from  dda1009c15f410d982d29759bf2b8098422c8740 (commit)

Summary of changes:
 t/ticket/search_by_cf_date.t | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

- Log -----------------------------------------------------------------
commit dd396c5661d12511f5516cc4b426ef118ad67aab
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Wed Jan 8 22:21:07 2020 +0800

    Load Test::MockTime earlier to fully replace time functions in core
    
    Otherwise, "today" would be parsed as current real date instead of the
    one set by Test::MockTime in RT::Date, which was loaded earlier than
    Test::MockTime.
    
    As it's already 2020, "2020-01-01" was not a future date any more
    because of the above issue, which failed tests.

diff --git a/t/ticket/search_by_cf_date.t b/t/ticket/search_by_cf_date.t
index 84a8e21ec5..a994fcdcfc 100644
--- a/t/ticket/search_by_cf_date.t
+++ b/t/ticket/search_by_cf_date.t
@@ -2,8 +2,8 @@
 use strict;
 use warnings;
 
-use RT::Test nodata => 1, tests => undef;
 use Test::MockTime 'set_fixed_time';
+use RT::Test nodata => 1, tests => undef;
 
 my $queue = RT::Test->load_or_create_queue( Name => 'General' );
 my $cf = RT::Test->load_or_create_custom_field( Name => 'test_cf', Queue => $queue->id, Type => 'Date' );

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


More information about the rt-commit mailing list