| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 053282e commit a501860
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -233,7 +233,11 @@ function getGlobalRoot() { | |||
| 233 | 233 | } | |
| 234 | 234 | ||
| 235 | 235 | async function startSubtest(subtest) { | |
| 236 | - await reportersSetup; | ||
| 236 | + if (reportersSetup) { | ||
| 237 | + // Only incur the overhead of awaiting the Promise once. | ||
| 238 | + await reportersSetup; | ||
| 239 | + reportersSetup = undefined; | ||
| 240 | + } | ||
| 237 | 241 | ||
| 238 | 242 | const root = getGlobalRoot(); | |
| 239 | 243 | if (!root.harness.bootstrapComplete) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments