aports/testing/opa/fix-prometheus-test.patch
mio 37340d93d2 testing/opa: fix test with go 1.25.2
Update patch to fix test error with runtime/metrics.

```
--- FAIL: TestJSONSerialization (0.00s)
    prometheus_test.go:195: unexpected extra metrics, expected 123, got 124
    prometheus_test.go:206: unexpected metric: go_godebug_non_default_behavior_httpcookiemaxnum_events_total (type: map[help:The number of non-default behaviors executed by the net/http package due to a non-default GODEBUG=httpcookiemaxnum=... setting. Sourced from /godebug/non-default-behavior/httpcookiemaxnum:events. metric:[map[counter:map[createdTimestamp:2025-10-09T03:14:57.747889370Z value:0]]] name:go_godebug_non_default_behavior_httpcookiemaxnum_events_total type:COUNTER])
FAIL
FAIL    github.com/open-policy-agent/opa/internal/prometheus    0.007s
```
2025-10-09 03:38:10 +00:00

18 lines
1.2 KiB
Diff

diff -ruN a/internal/prometheus/prometheus_test.go b/internal/prometheus/prometheus_test.go
--- a/internal/prometheus/prometheus_test.go 2025-06-30 08:57:36.000000000 +0000
+++ b/internal/prometheus/prometheus_test.go 2025-10-09 03:25:24.800000000 +0000
@@ -117,6 +117,13 @@
"go_cpu_classes_gc_total_cpu_seconds_total",
"go_sync_mutex_wait_total_seconds_total",
"go_cpu_classes_gc_pause_cpu_seconds_total",
+ "go_godebug_non_default_behavior_allowmultiplevcs_events_total", // added in 1.24.5
+ "go_godebug_non_default_behavior_updatemaxprocs_events_total", // added in 1.25
+ "go_godebug_non_default_behavior_tlssha1_events_total", // added in 1.25
+ "go_godebug_non_default_behavior_embedfollowsymlinks_events_total", // added in 1.25
+ "go_godebug_non_default_behavior_containermaxprocs_events_total", // added in 1.25
+ "go_godebug_non_default_behavior_x509sha256skid_events_total", // added in 1.25
+ "go_godebug_non_default_behavior_httpcookiemaxnum_events_total", // added in 1.25.2
"go_godebug_non_default_behavior_execerrdot_events_total", // BEGIN added in 1.21
"go_godebug_non_default_behavior_gocachehash_events_total",
"go_godebug_non_default_behavior_gocachetest_events_total",