From 7227dca1df201a3531d3f04f72aef78d39f53d90 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Tue, 14 Nov 2023 22:05:52 +0100 Subject: [PATCH] app/vmalert/datasource: test fix after 8a1b93a49df3a4d918fc7c486156851a380d13ce --- app/vmalert/datasource/vm_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/vmalert/datasource/vm_test.go b/app/vmalert/datasource/vm_test.go index b9c2183b07..ce8614f4f5 100644 --- a/app/vmalert/datasource/vm_test.go +++ b/app/vmalert/datasource/vm_test.go @@ -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) }, },