app/vmalert/datasource: test fix after 8a1b93a49d

This commit is contained in:
Aliaksandr Valialkin 2023-11-14 22:05:52 +01:00
parent 1c536ee7d3
commit 7227dca1df
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -496,7 +496,7 @@ func TestRequestParams(t *testing.T) {
QueryParams: url.Values{"extra_labels": {"env=dev", "foo=bar"}},
}),
func(t *testing.T, r *http.Request) {
exp := url.Values{"query": {query}, "round_digits": {"10"}, "extra_labels": {"env=dev", "foo=bar"}, "time": {timestamp.Format(time.RFC3339)}}
exp := url.Values{"query": {query}, "round_digits": {"10"}, "extra_labels": {"env=dev", "foo=bar"}, "time": {fmt.Sprintf("%d", timestamp.Unix())}}
checkEqualString(t, exp.Encode(), r.URL.RawQuery)
},
},