Skip to content

Commit

Permalink
Merge pull request #801 from Ant-Green/MoreFixes
Browse files Browse the repository at this point in the history
More Tweaks to Checks
  • Loading branch information
SQLDBAWithABeard committed Nov 23, 2020
2 parents a8ad3ba + 0cd0e2a commit c2c93a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/assertions/Instance.Assertions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@ function Assert-NotTraceFlag {
)

if ($null -eq $NotExpectedTraceFlag) {
((Get-DbaTraceFlag -SqlInstance $SQLInstance).Where{ $_.TraceFlag -notin $ExpectedTraceFlag} | Select-Object).TraceFlag | Should -BeNullOrEmpty -Because "We expect that there will be no Trace Flags set on $SQLInstance"
(@(Get-DbaTraceFlag -SqlInstance $SQLInstance).Where{ $_.TraceFlag -notin $ExpectedTraceFlag} | Select-Object).TraceFlag | Should -BeNullOrEmpty -Because "We expect that there will be no Trace Flags set on $SQLInstance"
}
else {
@($NotExpectedTraceFlag).ForEach{
Expand Down

0 comments on commit c2c93a1

Please sign in to comment.