Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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(storage): init retry conformance test scaffolding #4711
test(storage): init retry conformance test scaffolding #4711
Changes from 21 commits
a40676c
8c45efb
f606eeb
aa61155
400a64b
ff9be59
0abbad4
87f998e
57cc43e
c6385cd
14c25b6
5ddf761
d792232
4b1b2b9
36ae41c
d8fbc75
ec4ea20
d4fd9c1
e0b4753
bd237cc
31ebabd
74874e5
1974fa8
d6c80fb
4e4c1f8
0c98ce0
c157162
445f24c
31744de
8d1ecfb
018c255
afda9b6
8ce513a
ed848c2
907c050
acdd446
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"subtest" seems like the wrong word here-- this creates/manages a retry test in the emulator, correct? Any thoughts on a better name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I named it that as each
t.Run()
calls each function it runs a subtest and this struct is used throughout this functio, but yeah there is probably a better name for it.Maybe something like
emulatorRetryTest
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should populating the resources be a method on the subtest as well? Not required but it feels slightly cleaner I guess.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Curious is the main purpose of creating a wrappedClient in here to populate the retrySubtest struct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The wrappedClient adds the retry test header to each request, prints the request if the test fails and also adds the DevstorageFullControlScope to the https client transport. Correct, we do create it here to populate the struct