Treasury & Bank Transfer Management System — سامانه مدیریت خزانه‌داری و حواله‌های بانکی

Ensure local server from first installed smoke fully exits before independent native CDP replay

davoodmehraban89 committed Oct 26, 2026 at 08:16 UTC 14eaae81f5a3948e6b2a3d6d014f9270ef07ccf2
1 file changed +6
.github/workflows/v7-nonfinal-windows-nsis-acceptance-once.yml
+6
@@ -149,6 +149,12 @@ jobs:
149 }
150 # Independently test the real installed Electron renderer and CDP
151 # with isolated synthetic local database and no external bank access.
152 + for($probe=0;$probe -lt 40;$probe++){
153 + $stillListening=@(Get-NetTCPConnection -LocalPort 3210 -State Listen -ErrorAction SilentlyContinue)
154 + if($stillListening.Count -eq 0){break}
155 + Start-Sleep -Milliseconds 250
156 + }
157 + if($stillListening.Count -gt 0){throw 'PREVIOUS_SYNTHETIC_DESKTOP_PROCESS_PORT_NOT_CLEARED'}
158 $nativeTest=Join-Path $pwd 'qa/windows/v7-installed-native-cdp-smoke.mjs'
159 & node --check $nativeTest
160 if($LASTEXITCODE -ne 0){throw 'NATIVE_ELECTRON_CDP_TEST_SCRIPT_SYNTAX_FAILED'}