mirror of
https://github.com/TwiN/gatus.git
synced 2024-12-22 06:31:15 +01:00
fix(test): flaky TestStore_InsertCleansUpOldUptimeEntriesProperly (#418)
This commit is contained in:
parent
277e805dbb
commit
6e4b88dc6e
@ -97,7 +97,7 @@ func TestNewStore(t *testing.T) {
|
||||
func TestStore_InsertCleansUpOldUptimeEntriesProperly(t *testing.T) {
|
||||
store, _ := NewStore("sqlite", t.TempDir()+"/TestStore_InsertCleansUpOldUptimeEntriesProperly.db", false)
|
||||
defer store.Close()
|
||||
now := time.Now().Round(time.Minute)
|
||||
now := time.Now().Truncate(time.Hour)
|
||||
now = time.Date(now.Year(), now.Month(), now.Day(), now.Hour(), 0, 0, 0, now.Location())
|
||||
|
||||
store.Insert(&testEndpoint, &core.Result{Timestamp: now.Add(-5 * time.Hour), Success: true})
|
||||
|
Loading…
Reference in New Issue
Block a user