Skip to content

Commit 2844453

Browse files
committed
test(files): require injected folder rollback failure
1 parent a2718d2 commit 2844453

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

‎apps/sim/lib/projects/files/__integration__/retention.integration.ts‎

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -659,15 +659,17 @@ describe('Project file retention follows the current payer in PostgreSQL', () =>
659659
)
660660
)
661661
try {
662-
await runCleanupSoftDeletes(
663-
{
664-
workspaceIds: [f.workspaceId],
665-
plan: 'free',
666-
retentionHours: 30 * 24,
667-
label: 'workspace-folder-rollback',
668-
},
669-
createCleanupBudgets({ folders: 1 })
670-
).catch(() => undefined)
662+
await expect(
663+
runCleanupSoftDeletes(
664+
{
665+
workspaceIds: [f.workspaceId],
666+
plan: 'free',
667+
retentionHours: 30 * 24,
668+
label: 'workspace-folder-rollback',
669+
},
670+
createCleanupBudgets({ folders: 1 })
671+
)
672+
).rejects.toMatchObject({ cause: { message: 'folder retention rollback fixture' } })
671673
const [child] = await db
672674
.select({ parentId: folder.parentId, name: folder.name })
673675
.from(folder)

0 commit comments

Comments
 (0)