You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are various "WaitFor" (WaitForEvent, WaitForTestReadiness, WaitForCatalogRegistration, etc.) methods that our tests use which poll an API until a certain condition is met. They mostly all follow a similar pattern and could be refactored to use common code for the polling setup. This would help reduce the bootstrap code needed to implement polling methods in the future.
Additional context
Noting some differences between the methods that may affect writing a common polling logic method.
Some methods can benefit from returning the resource they're polling
Some methods fail the test if the timeout is reached and some return an error
The text was updated successfully, but these errors were encountered:
Description
There are various "WaitFor" (WaitForEvent, WaitForTestReadiness, WaitForCatalogRegistration, etc.) methods that our tests use which poll an API until a certain condition is met. They mostly all follow a similar pattern and could be refactored to use common code for the polling setup. This would help reduce the bootstrap code needed to implement polling methods in the future.
Additional context
Noting some differences between the methods that may affect writing a common polling logic method.
The text was updated successfully, but these errors were encountered: