test(e2e): fail background activity cleanup when a shell removal is rejected

This commit is contained in:
Chris Scott committed 2026-10-12 00:11:45 -04:00
1 parent 964c6c2f6e
commit 901bcd092e
1 file changed
+3 -1
+3 -1
View File
@@ -57,7 +57,9 @@ const createdShells: Array<{ directory: string; id: string }> = []
test.afterEach(async ({ request }) => {
const shells = createdShells.splice(0)
await Promise.allSettled(shells.map(({ directory, id }) => removeShell(request, directory, id)))
const results = await Promise.allSettled(shells.map(({ directory, id }) => removeShell(request, directory, id)))
const failures = results.flatMap((result) => (result.status === 'rejected' ? [String(result.reason)] : []))
expect(failures, 'background shell cleanup failed').toEqual([])
})
test.describe('session background activity', () => {