We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a61e2b6 commit 08951bdCopy full SHA for 08951bd
lib/internal/test_runner/test.js
@@ -1069,11 +1069,11 @@ class Test extends AsyncResource {
1069
}
1070
1071
if (this.plan !== null) {
1072
- const checkPollPromise = this.plan?.check();
1073
- // If the plan returns a promise, then the plan is polling and we need to wait for it to finish
1074
- // or the test to stop
1075
- if (checkPollPromise) {
1076
- await SafePromiseRace([checkPollPromise, stopPromise]);
+ const planPromise = this.plan?.check();
+ // If the plan returns a promise, it means that it is waiting for more assertions to be made before
+ // continuing.
+ if (planPromise) {
+ await SafePromiseRace([planPromise, stopPromise]);
1077
1078
1079
0 commit comments