mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Co-authored-by: Dongbo Wang <dongbow@microsoft.com>
This commit is contained in:
co-authored by
Dongbo Wang
parent
80cee3ec12
commit
d1d8b65045
@@ -85,7 +85,9 @@ Describe 'Group policy settings tests' -Tag CI,RequireAdminOnWindows {
|
||||
Remove-Item $ModuleNamesKeyPath -Recurse -Force
|
||||
# usually event becomes visible in the log after ~500 ms
|
||||
# set timeout for 5 seconds
|
||||
Wait-UntilTrue -sb { Get-WinEvent -FilterHashtable @{ ProviderName="PowerShellCore"; Id = 4103 } -MaxEvents 5 | ? {$_.Message.Contains($RareCommand)} } -TimeoutInMilliseconds (5*1000) -IntervalInMilliseconds 100 | Should -BeTrue
|
||||
Wait-UntilTrue -sb { Get-WinEvent -FilterHashtable @{ ProviderName="PowerShellCore"; Id = 4103 } -MaxEvents 5 |
|
||||
Where-Object {$_.Message.Contains($RareCommand)} } -TimeoutInMilliseconds (10*1000) -IntervalInMilliseconds 100 |
|
||||
Should -BeTrue
|
||||
}
|
||||
|
||||
$KeyPath = Join-Path $KeyRoot 'ModuleLogging'
|
||||
|
||||
Reference in New Issue
Block a user