diff --git a/point_test.go b/point_test.go index 6c2b164c25bbd0fedbab312d2e84c3cbe0b47084..047d4429f366038c453a400c77fe744387a69ddb 100644 --- a/point_test.go +++ b/point_test.go @@ -21,7 +21,7 @@ func TestCounter(t *testing.T) { t.Errorf("want '%v', got '%v'", want, got) } - wanted := `Desc{fqName: "rsyslog_my counter", help: "", constLabels: {}, variableLabels: []}` + wanted := `Desc{fqName: "rsyslog_my counter", help: "", constLabels: {}, variableLabels: {}}` if want, got := wanted, p1.promDescription().String(); want != got { t.Errorf("want '%s', got '%s'", want, got) } @@ -42,7 +42,7 @@ func TestGauge(t *testing.T) { t.Errorf("want '%v', got '%v'", want, got) } - wanted := `Desc{fqName: "rsyslog_my gauge", help: "", constLabels: {}, variableLabels: []}` + wanted := `Desc{fqName: "rsyslog_my gauge", help: "", constLabels: {}, variableLabels: {}}` if want, got := wanted, p1.promDescription().String(); want != got { t.Errorf("want '%s', got '%s'", want, got) }