diff --git a/tests/PSProxmoxVE.Tests/Containers/ContainerGapCmdlets.Tests.ps1 b/tests/PSProxmoxVE.Tests/Containers/ContainerGapCmdlets.Tests.ps1 index 470c011..b0dd445 100644 --- a/tests/PSProxmoxVE.Tests/Containers/ContainerGapCmdlets.Tests.ps1 +++ b/tests/PSProxmoxVE.Tests/Containers/ContainerGapCmdlets.Tests.ps1 @@ -70,7 +70,7 @@ Describe 'Suspend-PveContainer' -Tag 'Unit' { Context 'Without active session' { It 'Should throw when no session is active' { Skip-IfMissing 'Suspend-PveContainer' - { Suspend-PveContainer -Node 'pve' -VmId 100 -ErrorAction Stop } | + { Suspend-PveContainer -Node 'pve' -VmId 100 -Confirm:$false -ErrorAction Stop } | Should -Throw '*No active Proxmox VE session*' } } diff --git a/tests/PSProxmoxVE.Tests/Containers/ContainerLifecycle.Tests.ps1 b/tests/PSProxmoxVE.Tests/Containers/ContainerLifecycle.Tests.ps1 index 582baba..80f9b25 100644 --- a/tests/PSProxmoxVE.Tests/Containers/ContainerLifecycle.Tests.ps1 +++ b/tests/PSProxmoxVE.Tests/Containers/ContainerLifecycle.Tests.ps1 @@ -288,7 +288,7 @@ Describe 'Restart-PveContainer' { Context 'Without active session' { It 'Should throw when no session is active' { Skip-IfMissing 'Restart-PveContainer' - { Restart-PveContainer -Node 'pve-node1' -VmId 200 -ErrorAction Stop } | + { Restart-PveContainer -Node 'pve-node1' -VmId 200 -Confirm:$false -ErrorAction Stop } | Should -Throw '*No active Proxmox VE session*' } }