From 1bf07fc4389ea8199d0029173e94b68731c5a332 Mon Sep 17 00:00:00 2001 From: Robin Gustafsson Date: Mon, 18 Jan 2021 23:00:44 +0100 Subject: [PATCH] Fix time-related tests failing in 2021 Two tests related to Unix file listings are failing now in 2021 due to the expectation that a timestamp without an explicit year is from 2020. The expectation is adjusted to always use the current year. This solution was already used for a different file in the same dataset. --- tests/FtpTests.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/FtpTests.php b/tests/FtpTests.php index 717b0f5fb..270061a87 100755 --- a/tests/FtpTests.php +++ b/tests/FtpTests.php @@ -662,7 +662,7 @@ public function expectedUnixListings() [ 'type' => 'dir', 'path' => 'folder', - 'timestamp' => 1606226340, + 'timestamp' => DateTime::createFromFormat('M d H:i', 'Nov 24 13:59')->getTimestamp(), ], [ 'type' => 'file', @@ -693,7 +693,7 @@ public function expectedUnixListings() [ 'type' => 'dir', 'path' => 'folder', - 'timestamp' => 1606226340, + 'timestamp' => DateTime::createFromFormat('M d H:i', 'Nov 24 13:59')->getTimestamp(), ], [ 'type' => 'file',