Skip to content

Commit

Permalink
fixed failed whatif test
Browse files Browse the repository at this point in the history
  • Loading branch information
majkinetor committed Sep 20, 2017
1 parent 049b99d commit f281c9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions AU/Public/Push-Package.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ function Push-Package() {
$package = ls *.nupkg | sort -Property CreationTime -Descending | select -First 1
if (!$package) { throw 'There is no nupkg file in the directory'}
if ($api_key) {
cpush $package.Name --api-key $api_key --source https://push.chocolatey.org
cpush $package.Name --limit-output --api-key $api_key --source https://push.chocolatey.org
} else {
cpush $package.Name --source https://push.chocolatey.org
cpush $package.Name --limit-output --source https://push.chocolatey.org
}
}
2 changes: 1 addition & 1 deletion tests/Update-Package.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Describe 'Update-Package' -Tag update {
}

It 'can backup and restore using WhatIf' {
get_latest
get_latest -Version 1.2.3
$global:au_Force = $true; $global:au_Version = '1.0'
$global:au_WhatIf = $true
$res = update -ChecksumFor 32 6> $null
Expand Down

0 comments on commit f281c9e

Please sign in to comment.