[Bps-public-commit] r10831 - RT-Extension-SLA/t

ruz at bestpractical.com ruz at bestpractical.com
Thu Feb 14 02:08:29 EST 2008


Author: ruz
Date: Thu Feb 14 02:08:29 2008
New Revision: 10831

Modified:
   RT-Extension-SLA/t/business_hours.t
   RT-Extension-SLA/t/due.t
   RT-Extension-SLA/t/queue.t
   RT-Extension-SLA/t/starts.t

Log:
* make tests less noisy
* force TZ to GMT as tests expect it

Modified: RT-Extension-SLA/t/business_hours.t
==============================================================================
--- RT-Extension-SLA/t/business_hours.t	(original)
+++ RT-Extension-SLA/t/business_hours.t	Thu Feb 14 02:08:29 2008
@@ -3,12 +3,19 @@
 use strict;
 use warnings;
 
+
 use Test::More tests => 9;
 
 require 't/utils.pl';
 
 use_ok 'RT';
 RT::LoadConfig();
+$RT::LogToScreen = $ENV{'TEST_VERBOSE'} ? 'debug': 'warning';
+
+# XXX, TODO 
+# we assume the RT's Timezone is UTC now, need a smart way to get over that.
+$ENV{'TZ'} = $RT::Timezone = 'GMT';
+
 RT::Init();
 
 use_ok 'RT::Ticket';
@@ -16,9 +23,6 @@
 
 use Test::MockTime qw( :all );
 
-# XXX, TODO 
-# we assume the RT's Timezone is UTC now, need a smart way to get over that.
-
 diag 'check business hours';
 {
 

Modified: RT-Extension-SLA/t/due.t
==============================================================================
--- RT-Extension-SLA/t/due.t	(original)
+++ RT-Extension-SLA/t/due.t	Thu Feb 14 02:08:29 2008
@@ -9,6 +9,7 @@
 
 use_ok 'RT';
 RT::LoadConfig();
+$RT::LogToScreen = $ENV{'TEST_VERBOSE'} ? 'debug': 'warning';
 RT::Init();
 
 use_ok 'RT::Ticket';

Modified: RT-Extension-SLA/t/queue.t
==============================================================================
--- RT-Extension-SLA/t/queue.t	(original)
+++ RT-Extension-SLA/t/queue.t	Thu Feb 14 02:08:29 2008
@@ -9,6 +9,7 @@
 
 use_ok 'RT';
 RT::LoadConfig();
+$RT::LogToScreen = $ENV{'TEST_VERBOSE'} ? 'debug': 'warning';
 RT::Init();
 
 use_ok 'RT::Ticket';

Modified: RT-Extension-SLA/t/starts.t
==============================================================================
--- RT-Extension-SLA/t/starts.t	(original)
+++ RT-Extension-SLA/t/starts.t	Thu Feb 14 02:08:29 2008
@@ -9,6 +9,12 @@
 
 use_ok 'RT';
 RT::LoadConfig();
+$RT::LogToScreen = $ENV{'TEST_VERBOSE'} ? 'debug': 'warning';
+
+# XXX, TODO
+# we assume the RT's Timezone is UTC now, need a smart way to get over that.
+$ENV{'TZ'} = $RT::Timezone = 'GMT';
+
 RT::Init();
 
 use_ok 'RT::Ticket';



More information about the Bps-public-commit mailing list