From 6d759d64559a7f1975f13c310f3f1f8ff6b416a7 Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Sat, 4 Jan 2025 13:00:28 +0000 Subject: [PATCH] Update point_test.go --- point_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/point_test.go b/point_test.go index 6c2b164..047d442 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) } -- GitLab