chore: generate
This commit is contained in:
@@ -346,9 +346,7 @@ function attempts(database: Database.Service["Service"], sessionID: Session.ID)
|
||||
/** Builds the local execution layer plus the restart actions against the test harness services. */
|
||||
function buildExecution(
|
||||
scope: Scope.Closeable,
|
||||
drain: (
|
||||
input: Parameters<SessionRunner.Interface["drain"]>[0],
|
||||
) => Effect.Effect<void, SessionRunner.RunError>,
|
||||
drain: (input: Parameters<SessionRunner.Interface["drain"]>[0]) => Effect.Effect<void, SessionRunner.RunError>,
|
||||
options?: SessionRestart.Options,
|
||||
) {
|
||||
return Effect.gen(function* () {
|
||||
|
||||
@@ -392,11 +392,13 @@ const execution = Layer.effect(
|
||||
force: boolean,
|
||||
continuation?: SessionRunner.Continuation,
|
||||
): Effect.Effect<void, SessionRunner.RunError> {
|
||||
return sessionRunner.drain({ sessionID, force, continuation }).pipe(
|
||||
Effect.flatMap((result) =>
|
||||
result.type === "complete" ? Effect.void : drain(sessionID, false, result.continuation),
|
||||
),
|
||||
)
|
||||
return sessionRunner
|
||||
.drain({ sessionID, force, continuation })
|
||||
.pipe(
|
||||
Effect.flatMap((result) =>
|
||||
result.type === "complete" ? Effect.void : drain(sessionID, false, result.continuation),
|
||||
),
|
||||
)
|
||||
}
|
||||
const coordinator = yield* SessionRunCoordinator.make<Session.ID, SessionRunner.RunError>({
|
||||
drain: (sessionID, force) => drain(sessionID, force),
|
||||
|
||||
@@ -216,7 +216,12 @@ test("passes the row foreground color to gutters", async () => {
|
||||
expect(selected).not.toEqual(idle)
|
||||
|
||||
select.app.mockInput.pressArrow("down")
|
||||
await select.app.waitFor(() => colors.get("alpha")!.toInts().every((value, index) => value === idle[index]))
|
||||
await select.app.waitFor(() =>
|
||||
colors
|
||||
.get("alpha")!
|
||||
.toInts()
|
||||
.every((value, index) => value === idle[index]),
|
||||
)
|
||||
expect(colors.get("beta")!.toInts()).toEqual(selected)
|
||||
} finally {
|
||||
select.app.renderer.destroy()
|
||||
|
||||
Reference in New Issue
Block a user