Add a test to validate deferredResponseWriter on multiple writes #130190
Conversation
|
|
|
Welcome @nkeert! |
|
Hi @nkeert. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
| t.Fatalf("failed to decompress: %v", err) | ||
| } | ||
|
|
||
| if len(decompressed) != tt.resSize { |
There was a problem hiding this comment.
Can you compare contents instead of just size?
There was a problem hiding this comment.
sure, I have update the PR with the suggestion.
|
Looks great! Thanks for fast response. /ok-to-test |
817a620 to
f35ddf8
Compare
|
/retest |
| name string | ||
| chunks [][]byte | ||
| expectGzip bool | ||
| resSize int |
There was a problem hiding this comment.
Don't think testing resSize is needed anymore.
There was a problem hiding this comment.
Thanks for the review. I have updated the PR.
|
LGTM label has been added. DetailsGit tree hash: 45c22fef75c75b44415e59a51d5b9b729a15b184 |
Signed-off-by: nkeert <197718357+nkeert@users.noreply.github.com>
f35ddf8 to
45e2f3e
Compare
|
/retest |
|
/retest |
| { | ||
| name: "two small chunk writes", | ||
| chunks: [][]byte{smallChunk, smallChunk}, | ||
| expectGzip: false, |
There was a problem hiding this comment.
just leaving a comment here that we consider this to be sort of a bug, so that when we change the implementation in the future and fix this case, editing the unit test at the same time will not be surprising in the diff
|
LGTM label has been added. DetailsGit tree hash: 3f516ee30accd341287d0314ba0fd6b30048070b |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fuweid, liggitt, nkeert The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/triage accepted |
|
/kind feature |
|
/release-note-none |
What type of PR is this?
What this PR does / why we need it:
Thie PR adds test for deferredResponseWriter as requested in #130168
Which issue(s) this PR fixes:
Fixes #130168
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: