Skip to content

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

@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