From 734dc50972d94925437180b51b91efe9d109df52 Mon Sep 17 00:00:00 2001 From: Anthony Regeda Date: Thu, 28 Feb 2019 16:36:28 +0300 Subject: [PATCH] fix-panic-on-shutdown-server added test for const values parsing --- cmd/postgres_exporter/postgres_exporter_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/postgres_exporter/postgres_exporter_test.go b/cmd/postgres_exporter/postgres_exporter_test.go index c51d89a1..cb10c88c 100644 --- a/cmd/postgres_exporter/postgres_exporter_test.go +++ b/cmd/postgres_exporter/postgres_exporter_test.go @@ -249,6 +249,10 @@ func (s *FunctionalSuite) TestParseConstLabels(c *C) { "a": "b", }, }, + { + s: "a=", + labels: prometheus.Labels{}, + }, } for _, cs := range cases {