MINOR Change matchesRoughly threshold slightly in DbDatetimeTest to allow for slower database server connections

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@111821 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2010-10-08 01:55:55 +00:00 committed by Sam Minnee
parent feefb11dae
commit 0b2e932e10

View File

@ -8,7 +8,7 @@ class DbDatetimeTest extends FunctionalTest {
* can overflow to the next second giving offset readings. * can overflow to the next second giving offset readings.
*/ */
private function matchesRoughly($date1, $date2, $comment = '') { private function matchesRoughly($date1, $date2, $comment = '') {
$allowedDifference = 5; // seconds $allowedDifference = 15; // seconds
$time1 = is_numeric($date1) ? $date1 : strtotime($date1); $time1 = is_numeric($date1) ? $date1 : strtotime($date1);
$time2 = is_numeric($date2) ? $date2 : strtotime($date2); $time2 = is_numeric($date2) ? $date2 : strtotime($date2);