Fix test assertion for paginated results#331
Conversation
|
IIRC, this'll need an api version upgrade too. |
…rtion The fake dynamic client's GetContinue() reads the continue field via getNestedString, which returns "" for non-string values. Storing the continue value as int64 caused FollowContinue to stop after the first page. Switch to a non-empty string token for pages with remaining items. Also remove the t.Logf workaround left from the upstream k8s bug (kubernetes/kubernetes#107277, fixed in k8s v1.26); the assertion is now fully enforced. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
194296d to
430a2cc
Compare
|
CLA Assistant Lite bot: I have read the CLA Document and I hereby sign the CLA 1 out of 2 committers have signed the CLA. |
1 similar comment
|
CLA Assistant Lite bot: I have read the CLA Document and I hereby sign the CLA 1 out of 2 committers have signed the CLA. |
- Fix off-by-one in uns slice creation (< instead of <=) - Use SetContinue() in newUnstructuredList instead of storing "" explicitly - Simplify continue token condition to callIndex+1 < totalItemsInList Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
I have read the CLA Document and I hereby sign the CLA |
Fixes #277