From 7d09ef3e607fa0adaed94550c4eff08ef7bdafec Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Tue, 19 Oct 2010 04:55:50 +0000 Subject: [PATCH] MINOR Change matchesRoughly threshold slightly in DbDatetimeTest to allow for slower database server connections (from r111821) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112924 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- tests/model/DbDatetimeTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/model/DbDatetimeTest.php b/tests/model/DbDatetimeTest.php index 443a76b4f..ee1132a0f 100644 --- a/tests/model/DbDatetimeTest.php +++ b/tests/model/DbDatetimeTest.php @@ -8,7 +8,7 @@ class DbDatetimeTest extends FunctionalTest { * can overflow to the next second giving offset readings. */ private function matchesRoughly($date1, $date2, $comment = '') { - $allowedDifference = 5; // seconds + $allowedDifference = 15; // seconds $time1 = is_numeric($date1) ? $date1 : strtotime($date1); $time2 = is_numeric($date2) ? $date2 : strtotime($date2);