-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
test_runner: add TestContext.prototype.waitFor() #56595
Conversation
Review requested:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #56595 +/- ##
=======================================
Coverage 89.19% 89.20%
=======================================
Files 662 662
Lines 191797 191879 +82
Branches 36920 36934 +14
=======================================
+ Hits 171079 171157 +78
+ Misses 13558 13554 -4
- Partials 7160 7168 +8
|
I'm not convinced by the use case with |
I agree with @mcollina and I also think that throwing an error in an normal case is not intuitive (it also makes it impossible to differentiate a bug from an expected condition) |
This commit adds a waitFor() method to the TestContext class in the test runner. As the name implies, this method allows tests to more easily wait for things to happen.
I have removed |
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.
LGTM
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.
lgtm
Landed in 0e7ec5e |
This commit adds a
waitFor()
method to theTestContext
class in the test runner. As the name implies, this method allows tests to more easily wait for things to happen.