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 {