Skip to content

Add a reset method to MockWebServer #8880

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

Closed

Conversation

mmollaverdi
Copy link

This is useful for test suites which start the MockWebServer once at the beginning, shut it down at the end, and reuse it across tests. This can be called in a BeforeEach or AfterEach method for the request queue and count to be reset in between tests.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@yschimke
Copy link
Collaborator

Prior context on #6212

And #3390

So we likely won't accept the PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants