Fix deep equal comparison for time.Time

Signed-off-by: Bob Shannon <bshannon@palantir.com>
This commit is contained in:
Bob Shannon 2018-04-10 19:16:08 -07:00
parent e035b26e30
commit fc258df5b5
1 changed files with 2 additions and 2 deletions

View File

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