Repository navigation
Add a test for the powershell hang fix - #5451
Merged
Dongbo Wang (daxian-dbw) merged 3 commits intoNov 15, 2017
Merged
Conversation
Dongbo Wang (daxian-dbw)
requested review from
Paul Higinbotham (PaulHigin) and
Aditya Patwardhan (adityapatwardhan)
November 14, 2017 22:15
Dongbo Wang (daxian-dbw)
requested a review
from Travis Plunk (TravisEz13)
as a code owner
November 14, 2017 22:15
Aditya Patwardhan (adityapatwardhan)
requested changes
Nov 14, 2017
| exit | ||
| '@ | ||
| $process = Start-Process pwsh -ArgumentList $command -PassThru | ||
| for ($i = 0; -not $process.HasExited -and $i -lt 5; $i++) { |
There was a problem hiding this comment.
Member
Author
There was a problem hiding this comment.
OK, I will use Wait-UntilTrue
| Start-Sleep -Seconds 1 | ||
| } | ||
|
|
||
| $expect = "powershell process exits in 5 seconds" |
There was a problem hiding this comment.
Should the verification be like:
$process.HasExited | Should Be $true
Stop-Process $process -ErrorAction SilentlyContinue
Member
Author
There was a problem hiding this comment.
The Should be $true check will not generate a useful error message when it fails, so I prefer to the current check. But I will add -ErrorAction SilentlyContinue
Member
Author
|
Aditya Patwardhan (@adityapatwardhan) Your comments are addressed. Please take another look. Thanks! |
Aditya Patwardhan (adityapatwardhan)
approved these changes
Nov 14, 2017
Ilya (iSazonov)
approved these changes
Nov 15, 2017
Ilya (iSazonov)
left a comment
Collaborator
There was a problem hiding this comment.
Leave a comment
Paul Higinbotham (PaulHigin)
approved these changes
Nov 15, 2017
Paul Higinbotham (PaulHigin)
left a comment
Contributor
There was a problem hiding this comment.
LGTM
Thatgfsj (Thatgfsj)
pushed a commit
to Thatgfsj-contribs/PowerShell
that referenced
this pull request
Aug 6, 2026
- Add test for the powershell hang fix - Ignore the 'Sync-PSTags' warning
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add test for the fix in PR #5356
Also add a minor change to build.psm1 to ignore the 'Sync-PSTags' warning.