Skip to content

Commit eece536

Browse files
test(changelog): assert the losing publish fails on the deployment conflict
1 parent 3a95422 commit eece536

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎apps/sim/lib/changelog/repository.integration.ts‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,8 @@ describe('A deployment ships in one release', () => {
120120
await Promise.race([second.catch(() => {}), lockWaiterAppears()])
121121
commit.resolve()
122122

123-
const results = await Promise.allSettled([first, second])
124-
125-
expect(results.filter((r) => r.status === 'fulfilled')).toHaveLength(1)
123+
await expect(first).resolves.toMatchObject({ workspaceId })
124+
await expect(second).rejects.toThrow(/Already released/)
126125
const claims =
127126
await control`SELECT 1 FROM changelog_change WHERE deployment_version_id = ${deployment}`
128127
expect(claims).toHaveLength(1)

0 commit comments

Comments
 (0)