-
Notifications
You must be signed in to change notification settings - Fork 115
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
less flakiness in rex module #17519
base: master
Are you sure you want to change the base?
less flakiness in rex module #17519
Conversation
trigger: test-robottelo |
PRT Result
|
sleep(30) | ||
assert_job_invocation_result(target_sat, invocation_command['id'], client.hostname) | ||
assert invocation_info['status'] in ['running', 'finished', 'queued'] |
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.
Instead of using sleep func here, why not use wait_for here to check if job-invocation is finished
?
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.
or wait_for_tasks
.
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.
Ack (Pending requested changes)
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.
ACK in general. Also pending Gaurav's & Jameer's comment about using wait_for(_tasks).
trigger: test-robottelo |
PRT Result
|
Problem Statement
Trying to make a couple of problematic tests behave more predictably.
Solution
Asserting for rex status instead of result, removing some time assertions
Related Issues