mirror of
https://github.com/miniflux/v2.git
synced 2025-06-27 16:36:00 +00:00
Replace Travis by GitHub Actions
This commit is contained in:
parent
fb9a1a6129
commit
934385ff55
4 changed files with 97 additions and 22 deletions
|
@ -283,7 +283,8 @@ func TestParseFeedItemWithInvalidDate(t *testing.T) {
|
|||
t.Errorf("Incorrect number of entries, got: %d", len(feed.Entries))
|
||||
}
|
||||
|
||||
if !feed.Entries[0].Date.Before(time.Now()) {
|
||||
duration := time.Since(feed.Entries[0].Date)
|
||||
if duration.Seconds() > 1 {
|
||||
t.Errorf("Incorrect entry date, got: %v", feed.Entries[0].Date)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue