Skip to content

Commit

Permalink
Speed up 'Has Containers feature installed' test (MicrosoftDocs#560)
Browse files Browse the repository at this point in the history
* Speed up 'Has Containers feature installed' test

* Removing extra space
  • Loading branch information
PatrickLang authored Feb 8, 2017
1 parent 38e5f4b commit 6b3efd6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Describe "Windows Version and Prerequisites" {
}

It "Has 'Containers' feature installed" {
if (((Get-ComputerInfo).OsProductType) -eq "Workstation") {
if ((Get-Command Get-WindowsFeature -ErrorAction Ignore) -eq $null) {
(Get-WindowsOptionalFeature -Online -FeatureName Containers).State | Should Be "Enabled"
}
else {
Expand Down

0 comments on commit 6b3efd6

Please sign in to comment.