From b77f08533c8e03387e1d2478868b2a7479f11460 Mon Sep 17 00:00:00 2001 From: Clint Branham Date: Thu, 19 Mar 2026 15:58:11 -0500 Subject: [PATCH] fix(test): add delay after template conversion for PVE 9 propagation PVE 9 may not immediately reflect the template flag in the VM list after New-PveTemplate returns. Add a 3-second delay before verifying. PVE 8 passed without the delay. Co-Authored-By: Claude Opus 4.6 (1M context) --- tests/PSProxmoxVE.Tests/Integration/Integration.Tests.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/PSProxmoxVE.Tests/Integration/Integration.Tests.ps1 b/tests/PSProxmoxVE.Tests/Integration/Integration.Tests.ps1 index d23f575..4e9ccf1 100644 --- a/tests/PSProxmoxVE.Tests/Integration/Integration.Tests.ps1 +++ b/tests/PSProxmoxVE.Tests/Integration/Integration.Tests.ps1 @@ -643,6 +643,9 @@ Describe 'Integration Tests' -Tag 'Integration' { { New-PveTemplate -Node $script:Node -VmId $script:LinuxVmId -Confirm:$false -ErrorAction Stop } | Should -Not -Throw + # Allow a moment for the template flag to propagate + Start-Sleep -Seconds 3 + # Verify it appears as a template $templates = Get-PveTemplate -Node $script:Node $templates | Where-Object { $_.VmId -eq $script:LinuxVmId } |