Skip to content

Commit a1263a8

Browse files
committed
test(resume): build the starter with the session principal factory
1 parent 17b3d6d commit a1263a8

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎apps/sim/lib/workflows/executor/resume-policy.test.ts‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { createSessionPrincipal } from '@sim/testing/factories/principal.factory'
12
import { describe, expect, it } from 'vitest'
23
import {
34
MAX_AUTOMATIC_RESUME_ADMISSION_RETRIES,
@@ -52,9 +53,7 @@ describe('automatic resume admission policy', () => {
5253
})
5354

5455
describe('who a resumed run acts as', () => {
55-
const base = {
56-
principal: { kind: 'session', userId: 'starter' } as const,
57-
}
56+
const base = { principal: createSessionPrincipal({ userId: 'starter' }) }
5857

5958
it('keeps a member who resumed a branch that completed without pausing again', () => {
6059
expect(

0 commit comments

Comments
 (0)