From: Daniel Swarbrick <dswarbrick@debian.org>
Date: Sat, 16 Aug 2025 21:21:07 +0200
Subject: Fix collector metrics test for Go 1.24

Forwarded: not-needed
---
 prometheus/collectors/go_collector_go124_test.go | 2 --
 prometheus/go_collector_metrics_go124_test.go    | 3 +--
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/prometheus/collectors/go_collector_go124_test.go b/prometheus/collectors/go_collector_go124_test.go
index 3933de4..02b6b2f 100644
--- a/prometheus/collectors/go_collector_go124_test.go
+++ b/prometheus/collectors/go_collector_go124_test.go
@@ -52,7 +52,6 @@ func withAllMetrics() []string {
 		"go_gc_scan_stack_bytes",
 		"go_gc_scan_total_bytes",
 		"go_gc_stack_starting_size_bytes",
-		"go_godebug_non_default_behavior_allowmultiplevcs_events_total",
 		"go_godebug_non_default_behavior_asynctimerchan_events_total",
 		"go_godebug_non_default_behavior_execerrdot_events_total",
 		"go_godebug_non_default_behavior_gocachehash_events_total",
@@ -173,7 +172,6 @@ func withSchedulerMetrics() []string {
 
 func withDebugMetrics() []string {
 	return withBaseMetrics([]string{
-		"go_godebug_non_default_behavior_allowmultiplevcs_events_total",
 		"go_godebug_non_default_behavior_asynctimerchan_events_total",
 		"go_godebug_non_default_behavior_execerrdot_events_total",
 		"go_godebug_non_default_behavior_gocachehash_events_total",
diff --git a/prometheus/go_collector_metrics_go124_test.go b/prometheus/go_collector_metrics_go124_test.go
index 6c5d124..5785050 100644
--- a/prometheus/go_collector_metrics_go124_test.go
+++ b/prometheus/go_collector_metrics_go124_test.go
@@ -42,7 +42,6 @@ var (
 		"/gc/scan/stack:bytes":                                             "go_gc_scan_stack_bytes",
 		"/gc/scan/total:bytes":                                             "go_gc_scan_total_bytes",
 		"/gc/stack/starting-size:bytes":                                    "go_gc_stack_starting_size_bytes",
-		"/godebug/non-default-behavior/allowmultiplevcs:events":            "go_godebug_non_default_behavior_allowmultiplevcs_events_total",
 		"/godebug/non-default-behavior/asynctimerchan:events":              "go_godebug_non_default_behavior_asynctimerchan_events_total",
 		"/godebug/non-default-behavior/execerrdot:events":                  "go_godebug_non_default_behavior_execerrdot_events_total",
 		"/godebug/non-default-behavior/gocachehash:events":                 "go_godebug_non_default_behavior_gocachehash_events_total",
@@ -109,4 +108,4 @@ var (
 	}
 )
 
-const expectedRuntimeMetricsCardinality = 172
+const expectedRuntimeMetricsCardinality = 171
