Skip to content

[improve][test] Reduce the use of Mockito spies/mocks in tests#19326

Merged
lhotari merged 1 commit into
apache:masterfrom
lhotari:lh-reduce-spies-in-tests
Jan 25, 2023
Merged

[improve][test] Reduce the use of Mockito spies/mocks in tests#19326
lhotari merged 1 commit into
apache:masterfrom
lhotari:lh-reduce-spies-in-tests

Conversation

@lhotari

@lhotari lhotari commented Jan 25, 2023

Copy link
Copy Markdown
Member

Motivation

Mockito isn't thread safe and excessive usage of Mockito mocks and spies is causing flakiness in tests.
This PR is a follow-up on #19323 and adds more changes. This PR covers also ServerCnxTest which contains
similar flakiness issues as the tests fixed in #19323 .

Modifications

Reduce more Mockito spies/mocks in tests.

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

@lhotari lhotari added this to the 2.12.0 milestone Jan 25, 2023
@lhotari lhotari self-assigned this Jan 25, 2023
@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc-not-needed Your PR changes do not impact docs ready-to-test type/flaky-tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants