Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: speed up two tests #6558

Merged
merged 1 commit into from
Aug 16, 2023
Merged

test: speed up two tests #6558

merged 1 commit into from
Aug 16, 2023

Conversation

dfawley
Copy link
Member

@dfawley dfawley commented Aug 16, 2023

  • TestFlowControlLogicalRace: reduce some of the stressiness of this test to make it run in ~1s vs. ~4s before. Also make some minor simplifications to remove 10 lines of code and have the same logic.

  • TestCZClientSocketMetricsKeepAlive: make the keepalive pings happen at a much higher rate to enable two pings to happen in 100ms vs. 2s. Update test condition to pass even if verifyResultWithDelay needs to sleep a few times (this shouldn't happen, but could in theory).

RELEASE NOTES: none

- TestFlowControlLogicalRace: reduce some of the stressiness of this test to
  make it run in ~1s vs. ~4s before.

- TestCZClientSocketMetricsKeepAlive: make the keepalive pings happen at a much
  higher rate to enable two pings to happen in 100ms vs. 2s.  Update test
  condition to pass even if verifyResultWithDelay needs to sleep a few times
  (this shouldn't happen, but could in theory).
@dfawley dfawley added this to the 1.58 Release milestone Aug 16, 2023
@dfawley dfawley requested a review from arvindbr8 August 16, 2023 18:53
@arvindbr8 arvindbr8 assigned dfawley and unassigned arvindbr8 Aug 16, 2023
@dfawley dfawley merged commit 33f9fa2 into grpc:master Aug 16, 2023
1 check passed
@dfawley dfawley deleted the testspeed branch August 16, 2023 20:15
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants