From 58bde24ece3b2595ecff823515672b1ad95d2ca7 Mon Sep 17 00:00:00 2001 From: stefanprodan Date: Wed, 15 May 2019 20:10:27 +0300 Subject: [PATCH] Fix Istio request duration test --- pkg/metrics/istio_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/metrics/istio_test.go b/pkg/metrics/istio_test.go index dfba3c05..2eb7f5d2 100644 --- a/pkg/metrics/istio_test.go +++ b/pkg/metrics/istio_test.go @@ -49,7 +49,7 @@ func TestIstioObserver_GetRequestDuration(t *testing.T) { t.Errorf("\nGot %s \nWanted %s", promql, expected) } - json := `{"status":"success","data":{"resultType":"vector","result":[{"metric":{},"value":[1,"100"]}]}}` + json := `{"status":"success","data":{"resultType":"vector","result":[{"metric":{},"value":[1,"0.100"]}]}}` w.Write([]byte(json)) })) defer ts.Close()