Skip to content

Commit

Permalink
test: Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
coolapso committed Aug 19, 2024
1 parent 157b872 commit 9e09205
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/collectors/exporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9e09205

Please sign in to comment.