Skip to content

Fix Enter-PSHostProcess test to wait until runspace is ready before attempting to enter - #8725

Merged
Andrew (anmenaga) merged 2 commits into
PowerShell:masterfrom
SteveL-MSFT:enter-pshostprocess-test
Jan 23, 2019
Merged

Fix Enter-PSHostProcess test to wait until runspace is ready before attempting to enter#8725
Andrew (anmenaga) merged 2 commits into
PowerShell:masterfrom
SteveL-MSFT:enter-pshostprocess-test

Conversation

@SteveL-MSFT

@SteveL-MSFT Steve Lee (SteveL-MSFT) commented Jan 23, 2019

Copy link
Copy Markdown
Member

PR Summary

Nightly failed with error that runspace isn't ready. Timing issue between starting the powershell test process and trying to enter it before it's ready. Fix is to have the test process create a temp file that the test can wait on before attempting to enter.

PR Checklist

Comment thread test/powershell/Modules/Microsoft.PowerShell.Core/Enter-PSHostProcess.Tests.ps1 Outdated
Comment thread test/powershell/Modules/Microsoft.PowerShell.Core/Enter-PSHostProcess.Tests.ps1 Outdated
@anmenaga
Andrew (anmenaga) merged commit 3a82050 into PowerShell:master Jan 23, 2019
@anmenaga Andrew (anmenaga) added the WG-Quality-Test issues in a test or in test infrastructure label Jan 23, 2019
@SteveL-MSFT
Steve Lee (SteveL-MSFT) deleted the enter-pshostprocess-test branch January 24, 2019 01:06
@iSazonov Ilya (iSazonov) added the CL-Test Indicates that a PR should be marked as a test change in the Change Log label Feb 1, 2019
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj/PowerShell that referenced this pull request Aug 6, 2026
…ttempting to enter (PowerShell#8725)

This fixes CI test failure in Windows build.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-Test Indicates that a PR should be marked as a test change in the Change Log WG-Quality-Test issues in a test or in test infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants