Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix runspace tests so that they will run more reliably #7360

Merged
merged 2 commits into from
Jul 26, 2018
Merged

Fix runspace tests so that they will run more reliably #7360

merged 2 commits into from
Jul 26, 2018

Conversation

PaulHigin
Copy link
Contributor

PR Summary

Update the ThreadJob Runspace count tests so that they run in a separate process. This ensures that the count does not include other session runspace creation/removal and should make the tests reliable.

PR Checklist

@PaulHigin PaulHigin requested a review from anmenaga July 25, 2018 17:15
@PaulHigin PaulHigin added the WG-Quality-Test issues in a test or in test infrastructure label Jul 25, 2018
'@

$result = & "$PSHOME/pwsh" -c $script
$result | Should Be "True"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should -BeExactly

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

'@

$result = & "$PSHOME/pwsh" -c $script
$result | Should Be "True","True","True"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should -BeExactly

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Copy link
Contributor

@anmenaga anmenaga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@daxian-dbw daxian-dbw merged commit 20f7577 into PowerShell:master Jul 26, 2018
@PaulHigin PaulHigin deleted the fix-threadjob-runspace-tests branch July 26, 2018 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WG-Quality-Test issues in a test or in test infrastructure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants