From 3c21c9b80d67e5a014ae5306c9de0868ea268443 Mon Sep 17 00:00:00 2001 From: David Gardiner Date: Sat, 30 Dec 2017 14:13:42 +1030 Subject: [PATCH] Fix spelling of 'terminated' --- AU/Public/Update-AUPackages.ps1 | 2 +- tests/Update-AUPackages.Streams.Tests.ps1 | 2 +- tests/Update-AUPackages.Tests.ps1 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/AU/Public/Update-AUPackages.ps1 b/AU/Public/Update-AUPackages.ps1 index 6eee9088..9fb81ee8 100644 --- a/AU/Public/Update-AUPackages.ps1 +++ b/AU/Public/Update-AUPackages.ps1 @@ -125,7 +125,7 @@ function Update-AUPackages { $pkg.Ignored = $true $pkg.IgnoreMessage = $pkg.Result[-1] } elseif ($job.State -eq 'Stopped') { - $pkg.Error = "Job termintated due to the $($Options.UpdateTimeout)s UpdateTimeout" + $pkg.Error = "Job terminated due to the $($Options.UpdateTimeout)s UpdateTimeout" } else { $pkg.Error = 'Job returned no object, Vector smash ?' } diff --git a/tests/Update-AUPackages.Streams.Tests.ps1 b/tests/Update-AUPackages.Streams.Tests.ps1 index d3ef1a34..2a729c7c 100644 --- a/tests/Update-AUPackages.Streams.Tests.ps1 +++ b/tests/Update-AUPackages.Streams.Tests.ps1 @@ -84,7 +84,7 @@ Describe 'Update-AUPackages using streams' -Tag updateallstreams { $Options.UpdateTimeout = 5 $res = updateall -Options $Options 3>$null 6> $null - $res[0].Error -eq "Job termintated due to the 5s UpdateTimeout" | Should Be $true + $res[0].Error -eq "Job terminated due to the 5s UpdateTimeout" | Should Be $true } It 'should update all packages when forced' { diff --git a/tests/Update-AUPackages.Tests.ps1 b/tests/Update-AUPackages.Tests.ps1 index 62e7b391..3134e945 100644 --- a/tests/Update-AUPackages.Tests.ps1 +++ b/tests/Update-AUPackages.Tests.ps1 @@ -221,7 +221,7 @@ Describe 'Update-AUPackages' -Tag updateall { $Options.UpdateTimeout = 5 $res = updateall -Options $Options 3>$null 6> $null - $res[0].Error -eq "Job termintated due to the 5s UpdateTimeout" | Should Be $true + $res[0].Error -eq "Job terminated due to the 5s UpdateTimeout" | Should Be $true } It 'should update all packages when forced' {