| ... | @@ -326,17 +326,16 @@ export const makeOrchestrationIntegrationHarness = Effect.gen(function* () { | ... | @@ -326,17 +326,16 @@ export const makeOrchestrationIntegrationHarness = Effect.gen(function* () { |
| 326 | ); | 326 | ); |
| 327 | const disposeRuntimeExit = yield* Effect.exit(Effect.promise(() => runtime.dispose())); | 327 | const disposeRuntimeExit = yield* Effect.exit(Effect.promise(() => runtime.dispose())); |
| 328 | | 328 | |
| 329 | const failureCause = | 329 | const failureCause = Exit.isFailure(stopAllExit) |
| 330 | Exit.isFailure(stopAllExit) | 330 | ? stopAllExit.cause |
| 331 | ? stopAllExit.cause | 331 | : Exit.isFailure(closeScopeExit) |
| 332 | : Exit.isFailure(closeScopeExit) | 332 | ? closeScopeExit.cause |
| 333 | ? closeScopeExit.cause | 333 | : Exit.isFailure(disposeRuntimeExit) |
| 334 | : Exit.isFailure(disposeRuntimeExit) | 334 | ? disposeRuntimeExit.cause |
| 335 | ? disposeRuntimeExit.cause | 335 | : null; |
| 336 | : null; | | |
| 337 | | 336 | |
| 338 | if (failureCause) { | 337 | if (failureCause) { |
| 339 | yield* Effect.failCause(failureCause); | 338 | return yield* Effect.failCause(failureCause); |
| 340 | } | 339 | } |
| 341 | }); | 340 | }); |
| 342 | | 341 | |