Skip to content

Commit 5db10cc

Browse files
committed
test(logs): type the restored block state in the input-stage failure test
1 parent 26daa04 commit 5db10cc

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎apps/sim/lib/workflows/executor/execution-core.test.ts‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1099,7 +1099,13 @@ describe('executeWorkflowCore terminal finalization sequencing', () => {
10991099

11001100
it('logs the redacted input of a run that fails after its input stage, before it runs', async () => {
11011101
const state = createRestoredState(createManifest())
1102-
state.blockStates = { previous: { output: { result: 'restored alice@example.com' } } }
1102+
state.blockStates = {
1103+
previous: {
1104+
output: { result: 'restored alice@example.com' },
1105+
executed: true,
1106+
executionTime: 0,
1107+
},
1108+
}
11031109
maskBatchMock
11041110
.mockImplementationOnce(async (texts: string[]) => ({
11051111
masked: texts.map((text) => text.replaceAll('alice@example.com', '<EMAIL_ADDRESS>')),

0 commit comments

Comments
 (0)