apupier opened a new pull request, #30657:
URL: https://github.com/apache/camel/pull/30657

   # Description
   
   Fixes the flakiness of `KubernetesClusterViewStopTest` (CAMEL-27440), 
introduced by CAMEL-27296. Test-only change.
   
   - `testStoppedViewReleasesLeadership`: asserted `assertNull(getHolder())`, 
i.e. that the lease is empty after the leader released it. The other pod polls 
every ~200 ms and can take the lease before the assertion runs, so the test now 
asserts that the lease no longer names the stopped pod 
(`assertNotEquals(leader, getHolder())`). The following `waitForLeader` / 
`assertEquals(other, getHolder())` still verify the handover.
   - `testStopOfManyGroupsDoesNotWaitWhenTheLastLookupFailed`: limited the stop 
of 3 groups to `RENEW_DEADLINE_MILLIS / 2` (500 ms), which fails on a loaded CI 
machine (observed 540 ms and 634 ms). A release that is tried waits until the 
renew deadline, so the limit is now `RENEW_DEADLINE_MILLIS`, which still shows 
that no release was tried.
   
   The test class passes locally (18 tests). Flakiness was not re-verified over 
many runs.
   
   # Target
   
   - [ ] I checked that the commit is targeting the correct branch (Camel 4 
uses the `main` branch)
   
   # Tracking
   
   - [x] If this is a large change, bug fix, or code improvement, I checked 
there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL-27440) 
filed for the change (usually before you start working on it).
   
   # Apache Camel coding standards and style
   
   - [x] I checked that each commit in the pull request has a meaningful 
subject line and body.
   - [x] I have run `mvn clean install -DskipTests` locally from root folder 
and I have committed all auto-generated changes.
   
   ---
   _Bob (IBM Bob 2.2.1) on behalf of apupier_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to