Fix deep equal comparison for time.Time
Signed-off-by: Bob Shannon <bshannon@palantir.com>
This commit is contained in:
parent
e035b26e30
commit
fc258df5b5
|
@ -447,7 +447,7 @@ func TestAPIs(t *testing.T) {
|
|||
},
|
||||
"scrapeUrl": testURL.String(),
|
||||
"lastError": "error while scraping target",
|
||||
"lastScrape": testTime.Format(time.RFC3339Nano),
|
||||
"lastScrape": testTime.UTC().Format(time.RFC3339Nano),
|
||||
"health": "up",
|
||||
},
|
||||
},
|
||||
|
@ -477,7 +477,7 @@ func TestAPIs(t *testing.T) {
|
|||
},
|
||||
ScrapeURL: testURL,
|
||||
LastError: "error while scraping target",
|
||||
LastScrape: testTime.Round(0),
|
||||
LastScrape: testTime.UTC(),
|
||||
Health: scrape.HealthGood,
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue