mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-03-21 15:45:01 +00:00
app/vmalert/datasource: test fix after 8a1b93a49d
This commit is contained in:
parent
1c536ee7d3
commit
7227dca1df
1 changed files with 1 additions and 1 deletions
|
@ -496,7 +496,7 @@ func TestRequestParams(t *testing.T) {
|
||||||
QueryParams: url.Values{"extra_labels": {"env=dev", "foo=bar"}},
|
QueryParams: url.Values{"extra_labels": {"env=dev", "foo=bar"}},
|
||||||
}),
|
}),
|
||||||
func(t *testing.T, r *http.Request) {
|
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)
|
checkEqualString(t, exp.Encode(), r.URL.RawQuery)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue