mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Increase the timeout when waiting for the event log (#19264)
This commit is contained in:
@@ -90,7 +90,7 @@ Describe 'Group policy settings tests' -Tag CI,RequireAdminOnWindows {
|
||||
# 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 |
|
||||
Where-Object {$_.Message.Contains($RareCommand)} } -TimeoutInMilliseconds (5*1000) -IntervalInMilliseconds 100 |
|
||||
Where-Object {$_.Message.Contains($RareCommand)} } -TimeoutInMilliseconds (10*1000) -IntervalInMilliseconds 100 |
|
||||
Should -BeTrue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user