Commit bf7c07b
committed
fix(V2): resolve home org without shared-setup state in data-short
The non-home project wait loop called getSharedHomeOrgId(), which throws
unless runSharedSetup() ran in the same process. runSharedSetup only runs
inside the spawned mocha child processes, never in the data-short
orchestrator, so the accessor threw and main()'s catch called
process.exit(1) — crashing the entire V2 live-api run before the PUT and
DELETE phases.
Resolve the home org directly via getHomeOrgId(request) inside a
try/catch so the orchestrator no longer depends on child-process state.1 parent e9f826b commit bf7c07b
1 file changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
357 | 356 | | |
358 | 357 | | |
359 | 358 | | |
360 | | - | |
| 359 | + | |
361 | 360 | | |
362 | 361 | | |
363 | 362 | | |
| |||
424 | 423 | | |
425 | 424 | | |
426 | 425 | | |
427 | | - | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
428 | 434 | | |
429 | 435 | | |
430 | 436 | | |
| |||
0 commit comments