mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-25 09:41:04 +01:00
fix: update stale blast-radius test assertion for active_runtime_use
The createDeleteBlastRadius helper now includes 'active_runtime_use' in deleteBlockedReasons when hasActiveRuntimeUse is true. The existing blast-radius test for instance admins passed activeLeaseCount: 1, so the helper produces canDelete: false / deleteBlockedReasons: ['active_runtime_use'], but the assertion still expected the old canDelete: true / deleteBlockedReasons: []. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
5b4e21dbd8
commit
f4514f3c6d
1 file changed
+2
-2
@@ -422,8 +422,8 @@ describe("environment routes", () => {
|
||||
expect(res.status).toBe(200);
|
||||
expect(res.body).toEqual({
|
||||
environmentId: "env-1",
|
||||
canDelete: true,
|
||||
deleteBlockedReasons: [],
|
||||
canDelete: false,
|
||||
deleteBlockedReasons: ["active_runtime_use"],
|
||||
staticReferences: {
|
||||
isManagedLocal: false,
|
||||
isInstanceDefault: false,
|
||||
|
||||
Reference in new issue
Block a user