mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
test(e2e): fail background activity cleanup when a shell removal is rejected
This commit is contained in:
1 parent
964c6c2f6e
commit
901bcd092e
1 file changed
+3
-1
@@ -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', () => {
|
||||
|
||||
Reference in new issue
Block a user