Skip to content

Flaky test: GaugeTest.testTimer on Java 25 #1972

Description

@zeitlinger

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 on CI.

Suggested fix

Use a more generous tolerance or assert > 0 rather than closeness to
a specific wall-clock duration.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions