Skip to content
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

add loop and timeout for properties queries on system tests #70

Merged
merged 3 commits into from
Apr 10, 2019
Merged

add loop and timeout for properties queries on system tests #70

merged 3 commits into from
Apr 10, 2019

Conversation

cguardia
Copy link
Contributor

This fixes the problem locally for me.

@cguardia cguardia requested a review from chrisrossi April 10, 2019 01:14
Copy link
Contributor

@chrisrossi chrisrossi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. Thank you!

), "Metadata was not updated in time."

time.sleep(1)

properties = get_properties_of_kind("AnyKind")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is redundant. You already have properties.

@chrisrossi
Copy link
Contributor

Actually, I see now that Kokoro has failed for the same thing on test_get_properties_of_kind_different_namespace. Maybe the retry loop can be factored out into a reusable function and the fix applied to any of the tests that needs to wait on metadata to update.

@cguardia
Copy link
Contributor Author

Yeah, I had seen that. I was not expecting a quick review ;) Will fix.

@chrisrossi
Copy link
Contributor

chrisrossi commented Apr 10, 2019 via email

@cguardia cguardia merged commit 10e3051 into googleapis:master Apr 10, 2019
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.

2 participants