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

Should -ActualValue $result.TraceFlag -BeOfType 'System.UInt32[]' regression. #2371

Open
3 tasks done
nohwnd opened this issue Jun 26, 2023 · 0 comments
Open
3 tasks done

Comments

@nohwnd
Copy link
Member

nohwnd commented Jun 26, 2023

Checklist

What is the issue?

##[error] [-] Should return an empty array 51ms (45ms|6ms)
##[error] Expected the value to have type [uint[]] or any of its subtypes, but got $null with type $null.
##[error] at Should -ActualValue $result.TraceFlag -BeOfType 'System.UInt32[]', D:\a\1\s\tests\Unit\Public\Get-SqlDscStartupParameter.Tests.ps1:178
##[error] at Invoke-Assertion, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:8120
##[error] at Should, D:\a\1\s\output\RequiredModules\Pester\5.5.0\Pester.psm1:8055
##[error] at , D:\a\1\s\tests\Unit\Public\Get-SqlDscStartupParameter.Tests.ps1:178

https://dev.azure.com/dsccommunity/SqlServerDsc/_build/results?buildId=8038&view=logs&j=8af7cf9c-43a1-584d-6f5c-57bad8880974&t=a93ba588-7f3e-5259-6924-3f054a327451&l=6932
Seems to be for this test code:
https://github.com/dsccommunity/SqlServerDsc/blob/527dcd4e444bd5e799bb6cd415a08d420246d99a/tests/Unit/Public/Get-SqlDscStartupParameter.Tests.ps1#L173-L189
It is either an issue in a recent change in Pester, or something has been changed to the better in Pester so the test code need to be modified.
I wont be able to work on OSS so much for a while (due to health reasons) so won't be able to dig into this further. Hoping someone else can look into this ❤️

Expected Behavior

It does not fail.

Steps To Reproduce

No response

Describe your environment

Pester 5.5.0-rc1

Possible Solution?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant