| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 5905596 commit 4648c83
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -225,7 +225,11 @@ function getGlobalRoot() { | |||
| 225 | 225 | } | |
| 226 | 226 | ||
| 227 | 227 | async function startSubtest(subtest) { | |
| 228 | - await reportersSetup; | ||
| 228 | + if (reportersSetup) { | ||
| 229 | + // Only incur the overhead of awaiting the Promise once. | ||
| 230 | + await reportersSetup; | ||
| 231 | + reportersSetup = undefined; | ||
| 232 | + } | ||
| 229 | 233 | ||
| 230 | 234 | const root = getGlobalRoot(); | |
| 231 | 235 | if (!root.harness.bootstrapComplete) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments