mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Added pester tests for Wait-Event
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
Describe "Wait-Event" {
|
||||
|
||||
Context "Validate Wait-Event is waiting for events" {
|
||||
It "Should verify Wait-Event is waiting for at least a second" {
|
||||
$waiteventtime = Measure-Command { Wait-Event -timeout 1 }
|
||||
$waiteventtime.Seconds | Should BeGreaterThan 0
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user