Re-shuffle minishell tests

This commit is contained in:
Sergei Vorobev
2016-11-15 14:49:39 -08:00
parent c0bda7a55a
commit 616c15556f
3 changed files with 68 additions and 59 deletions
@@ -1,3 +1,24 @@
Describe 'native commands lifecycle' -tags 'CI' {
BeforeAll {
$powershell = Join-Path -Path $PsHome -ChildPath "powershell"
}
It "native | ps | native doesn't block" {
$first = $true
& $powershell -command '1..5 | % {Start-Sleep -mill 100; $_}' | %{$_} | & $powershell -command '$input' | % {
if ($first)
{
$first = $false
$firstTime = [datetime]::Now
}
$lastTime = [datetime]::Now
}
$lastTime - $firstTime | Should BeGreaterThan ([timespan]::new(0, 0, 0, 0, 100)) # 100 milliseconds
}
}
Describe "Native Command Processor" -tags "Feature" {
BeforeAll {