Skip to content

Commit 2b6413c

Browse files
committed
fix: Don't mark "waiting for orher Expectation" as an error
Because expectations with errors are prioritized down, we should only mark them if there was really an issue with them
1 parent f4b7410 commit 2b6413c

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

shared/packages/api/src/worker.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export type ReturnTypeIsExpectationReadyToStartWorkingOn =
2121
| {
2222
ready: false
2323
sourceExists?: boolean
24+
isWaitingForAnother?: boolean
2425
reason: Reason
2526
}
2627
export type ReturnTypeIsExpectationFullfilled =

shared/packages/expectationManager/src/expectationManager.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ export class ExpectationManager {
10361036
state: ExpectedPackageStatusAPI.WorkStatusState.NEW,
10371037
reason: readyToStart.reason,
10381038
status: newStatus,
1039-
isError: true,
1039+
isError: !readyToStart.isWaitingForAnother,
10401040
})
10411041
}
10421042
}
@@ -1579,6 +1579,7 @@ export class ExpectationManager {
15791579
user: `Waiting for "${waitingFor.exp.statusReport.label}"`,
15801580
tech: `Waiting for "${waitingFor.exp.statusReport.label}"`,
15811581
},
1582+
isWaitingForAnother: true,
15821583
}
15831584
}
15841585

0 commit comments

Comments
 (0)