mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-29 10:26:29 +02:00
Currently there appears to be a test order dependency between a couple of the info_test.go test cases and the Test_PrometheusHandler test. This can be exposed by running: go test -count 2 ./internal/telemetry/metrics The test cases in info_test.go overwrite the global 'registry' variable, which seems to prevent Test_PrometheusHandler from being able to export the internal Go metrics. Add a helper method to restore the original registry after these test cases. |
||
---|---|---|
.. | ||
metrics | ||
prometheus | ||
trace | ||
doc.go | ||
grpc.go | ||
grpc_test.go | ||
http.go | ||
util.go | ||
util_test.go |