Skip to content

Commit 114cf00

Browse files
committed
fix(cli): remove the CLI E2E's execution logs and snapshots on cleanup
1 parent 4174e58 commit 114cf00

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎apps/sim/scripts/test-cli-run-latency-e2e.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,10 @@ async function seed() {
203203
}
204204

205205
async function cleanup() {
206+
// Snapshots outlive their workflow (`workflow_id` is set null), so they go first,
207+
// after the logs that reference them.
208+
await sql`delete from workflow_execution_logs where workflow_id = ${workflowId}`
209+
await sql`delete from workflow_execution_snapshots where workflow_id = ${workflowId}`
206210
await sql`delete from workspace where id = ${workspaceId}`
207211
await sql`delete from "user" where id = ${userId}`
208212
}

0 commit comments

Comments
 (0)