Skip to content

Commit

Permalink
fix(integration): no spans in the future
Browse files Browse the repository at this point in the history
Signed-off-by: Johannes Würbach <[email protected]>
  • Loading branch information
johanneswuerbach committed Feb 18, 2022
1 parent 4d1fc06 commit b4bc17f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugin/storage/integration/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,10 +327,10 @@ func loadAndParseJSON(t *testing.T, path string, object interface{}) {
func correctTime(json []byte) []byte {
jsonString := string(json)
now := time.Now().UTC()
today := now.Format("2006-01-02")
yesterday := now.AddDate(0, 0, -1).Format("2006-01-02")
retString := strings.Replace(jsonString, "2017-01-26", today, -1)
retString = strings.Replace(retString, "2017-01-25", yesterday, -1)
twoDaysAgo := now.AddDate(0, 0, -2).Format("2006-01-02")
retString := strings.Replace(jsonString, "2017-01-26", yesterday, -1)
retString = strings.Replace(retString, "2017-01-25", twoDaysAgo, -1)
return []byte(retString)
}

Expand Down

0 comments on commit b4bc17f

Please sign in to comment.