Skip to content

Commit

Permalink
Relax test value offsets
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatan-ivanov committed Sep 16, 2024
1 parent b787eb2 commit 063d3f2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ void pinnedEventsShouldBeRecorded() {

Timer timer = registry.get("jvm.threads.virtual.pinned").tags(TAGS).timer();
await().atMost(Duration.ofSeconds(2)).until(() -> timer.count() == 3);
assertThat(timer.max(MILLISECONDS)).isBetween(45d, 55d); // ~50ms
assertThat(timer.totalTime(MILLISECONDS)).isBetween(145d, 155d); // ~150ms
assertThat(timer.max(MILLISECONDS)).isBetween(40d, 60d); // ~50ms
assertThat(timer.totalTime(MILLISECONDS)).isBetween(130d, 170d); // ~150ms
}
}

Expand Down

0 comments on commit 063d3f2

Please sign in to comment.