fix(test): improve how --fail-fast shuts down when hitting limit (#16956)

Closes #15650
This commit is contained in:
David Sherret 2022-12-05 16:17:49 -05:00 committed by GitHub
parent 3863aaf8ae
commit 2fab4583ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 104 additions and 31 deletions

View file

@ -1086,6 +1086,9 @@
}
for (const desc of filtered) {
if (ops.op_tests_should_stop()) {
break;
}
ops.op_dispatch_test_event({ wait: desc.id });
const earlier = DateNow();
const result = await runTest(desc);