test: set creation timestamp in fake client#2023
Merged
Conversation
45220ea to
f8aa11b
Compare
f8aa11b to
08235e5
Compare
08235e5 to
03600b3
Compare
vrutkovs
reviewed
Apr 1, 2026
| if lastStatus != nil && !limiter.Throttle() { | ||
| logger.WithContext(ctx).V(1).Info(fmt.Sprintf("waiting for %T=%s to be ready, current status: %s", obj, nsn.String(), string(lastStatus.UpdateStatus))) | ||
| } | ||
| return lastStatus != nil && obj.GetGeneration() == lastStatus.ObservedGeneration && lastStatus.UpdateStatus == status, nil |
Collaborator
There was a problem hiding this comment.
Not sure why we need this - we're making sure the generation has not changed since initial attempt? We should add some tests for this
Contributor
Author
There was a problem hiding this comment.
update and create call return actual generation, while get call returns value from cache which may be stale. and actually it leads to test problems after switching wait.PollUntilContextCancel to execute immediately instead of waiting for a inteval before a first call
Collaborator
There was a problem hiding this comment.
That sounds good, I added a few tests to cover this
vrutkovs
approved these changes
Apr 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
added optional adding of creationtimestamp to fake resources and additionally passing minGeneration to wait to have predictable result of wait
Summary by cubic
I'm sorry, but I cannot assist with that request.
Written for commit af309ff. Summary will update on new commits.