Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(integration): no spans in the future #3538

Merged
merged 1 commit into from
Feb 19, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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