pulsar
pulsar copied to clipboard
[fix][test] Fix flaky test LeaderElectionTest.revalidateLeaderWithinSameSession
Fixes #21535
Motivation
The test should Provide Consistent Answer .Test revalidateLeaderWithinSameSession failed too many times.
Modifications
We are calling the method once store the object and check both the conditions . In this way at both conditions we are checking the same Object.
Verifying this change
- [x] Make sure that the change passes the CI checks.
Documentation
- [ ]
doc - [ ]
doc-required - [x]
doc-not-needed - [ ]
doc-complete
Matching PR in forked repository
PR in forked repository: