Skip to content

Commit 08951bd

Browse files
committed
test_runner: refactor namings
1 parent a61e2b6 commit 08951bd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/internal/test_runner/test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,11 +1069,11 @@ class Test extends AsyncResource {
10691069
}
10701070

10711071
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]);
1072+
const planPromise = this.plan?.check();
1073+
// If the plan returns a promise, it means that it is waiting for more assertions to be made before
1074+
// continuing.
1075+
if (planPromise) {
1076+
await SafePromiseRace([planPromise, stopPromise]);
10771077
}
10781078
}
10791079

0 commit comments

Comments
 (0)