Skip to content

Commit

Permalink
Fix time-related tests failing in 2021
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rgson authored and frankdejonge committed Jan 19, 2021
1 parent 13352d2 commit 1bf07fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/FtpTests.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 1bf07fc

Please sign in to comment.