Title: Flaky test: GaugeTest.testTimer on Java 25 · Issue #1972 · prometheus/client_java · GitHub
Open Graph Title: Flaky test: GaugeTest.testTimer on Java 25 · Issue #1972 · prometheus/client_java
X Title: Flaky test: GaugeTest.testTimer on Java 25 · Issue #1972 · prometheus/client_java
Description: Description GaugeTest.testTimer fails on Java 25 with a timing assertion that's too tight: Expecting actual: 0.101583116 to be close to: 0.012 at line 91. The test expects ~12ms but the timer measured ~101ms — likely a scheduling delay o...
Open Graph Description: Description GaugeTest.testTimer fails on Java 25 with a timing assertion that's too tight: Expecting actual: 0.101583116 to be close to: 0.012 at line 91. The test expects ~12ms but the timer measu...
X Description: Description GaugeTest.testTimer fails on Java 25 with a timing assertion that's too tight: Expecting actual: 0.101583116 to be close to: 0.012 at line 91. The test expects ~12ms but the timer m...
Opengraph URL: https://github.com/prometheus/client_java/issues/1972
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Flaky test: GaugeTest.testTimer on Java 25","articleBody":"## Description\n\n`GaugeTest.testTimer` fails on Java 25 with a timing assertion that's\ntoo tight:\n\n```text\nExpecting actual:\n 0.101583116\nto be close to:\n 0.012\n```\n\nat line 91. The test expects ~12ms but the timer measured ~101ms — likely\na scheduling delay on CI.\n\n## Suggested fix\n\nUse a more generous tolerance or assert `> 0` rather than closeness to\na specific wall-clock duration.","author":{"url":"https://github.com/zeitlinger","@type":"Person","name":"zeitlinger"},"datePublished":"2026-03-19T18:28:03Z","url":"https://github.com/prometheus/client_java/issues/1972"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c7f59ebb-ba4e-0346-ad35-6d884da27d17 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8F02:A306A:5F5D4:84C61:6AFBB649 |
| html-safe-nonce | 26ea67d7c97a46661d3e08d0b9681d7d81f5b6666e35f7c9ed2c7c1cba0566d4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjAyOkEzMDZBOjVGNUQ0Ojg0QzYxOjZBRkJCNjQ5IiwidmlzaXRvcl9pZCI6IjY5MTIwMjQ3MTEwMTg1NTkwNDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f35f6458ac9d36d2398286f0f32fe7960409fab3fa041f2897fbe3818c62320f |
| hovercard-subject-tag | issue:4103452012 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/prometheus/client_java/1972/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ec063e564f28c1c487c4e3b7dee051d4dec517f2fb8b68462feb05edfdb8add7/prometheus/client_java/issues/1972 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ec063e564f28c1c487c4e3b7dee051d4dec517f2fb8b68462feb05edfdb8add7/prometheus/client_java/issues/1972 |
| og:image:alt | Description GaugeTest.testTimer fails on Java 25 with a timing assertion that's too tight: Expecting actual: 0.101583116 to be close to: 0.012 at line 91. The test expects ~12ms but the timer measu... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zeitlinger |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2b2ef9c1578c18d8ed27027940544c958743213cf4461659f14d3ccdf51e162c |
| turbo-cache-control | no-preview |
| go-import | github.com/prometheus/client_java git https://github.com/prometheus/client_java.git |
| octolytics-dimension-user_id | 3380462 |
| octolytics-dimension-user_login | prometheus |
| octolytics-dimension-repository_id | 7997879 |
| octolytics-dimension-repository_nwo | prometheus/client_java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7997879 |
| octolytics-dimension-repository_network_root_nwo | prometheus/client_java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e4cce0e99cf61481a318ff12c2e8580153a6c7c6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width