1
0
Fork 0
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:
Frédéric Guillot 2019-09-15 11:32:12 -07:00 committed by Frédéric Guillot
parent fb9a1a6129
commit 934385ff55
4 changed files with 97 additions and 22 deletions

View file

@ -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)
}
}