Skip to content

Commit

Permalink
Bug 37467965 - [37355933->22.06.12] Build: CESJavaSingleClusterTests.…
Browse files Browse the repository at this point in the history
…shouldUseDefaultExecutor (merge 14.1.1.2206 -> ce/22.06 @ 113580)

[git-p4: depot-paths = "//dev/coherence-ce/release/coherence-ce-v22.06/": change = 113581]
  • Loading branch information
rlubke committed Jan 16, 2025
1 parent cc6d564 commit 79448ec
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@

import static org.hamcrest.CoreMatchers.is;

import static org.hamcrest.Matchers.both;
import static org.hamcrest.Matchers.greaterThan;
import static org.hamcrest.Matchers.lessThanOrEqualTo;

import static org.junit.Assert.fail;


Expand Down Expand Up @@ -107,7 +111,10 @@ public void shouldUseDefaultExecutor()

protected void validateMetrics()
{
Eventually.assertDeferred(this::getCompletedMetricsAggregate, is(23L));
// range check as some tasks may be cancelled, which is fine
// given the api calls
Eventually.assertDeferred(this::getCompletedMetricsAggregate,
is(both(greaterThan(20L)).and(lessThanOrEqualTo(23L))));
}

protected long getCompletedMetricsAggregate()
Expand Down

0 comments on commit 79448ec

Please sign in to comment.