From 9e0920553c0e5fbe81c83c112b41ef33b5efb370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Cola=C3=A7o?= Date: Tue, 20 Aug 2024 00:30:09 +0200 Subject: [PATCH] test: Fix tests --- internal/collectors/exporter_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/collectors/exporter_test.go b/internal/collectors/exporter_test.go index 0b8eb87..03c6cf0 100644 --- a/internal/collectors/exporter_test.go +++ b/internal/collectors/exporter_test.go @@ -10,7 +10,7 @@ func TestNewMetrics(t *testing.T) { metrics := newMetrics() t.Run("Test Sample metric A", func(t *testing.T) { - expected := `Desc{fqName: "youtube_channel_isLive", help: "If Youtube channel live stream is broadcasting", constLabels: {}, variableLabels: {channel_name}}` + expected := `Desc{fqName: "youtube_channel_is_live", help: "If Youtube channel live stream is broadcasting", constLabels: {}, variableLabels: {channel_id}}` got := metrics.IsLive.String() if !strings.Contains(got, expected) { t.Fatalf("Metric does not contain expected fqName, expected: %v, got %v", expected, got)