mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
feefb11dae
commit
0b2e932e10
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user