Skip to content

Commit 1ffd2a5

Browse files
committed
add debug/verbose for failing test
1 parent 7448809 commit 1ffd2a5

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/code/FindHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1187,7 +1187,7 @@ internal void FindDependencyPackagesHelper(ServerApiCall currentServer, Response
11871187
{
11881188
// If finding more than 5 packages, do so concurrently
11891189
//const int PARALLEL_THRESHOLD = 5; // TODO: Trottle limit from user, defaults to 5;
1190-
int processorCount = Environment.ProcessorCount;
1190+
int processorCount = 2; //Environment.ProcessorCount;
11911191
int maxDegreeOfParallelism = processorCount * 4;
11921192
if (currentPkg.Dependencies.Length > processorCount)
11931193
{

src/code/InstallHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ private ConcurrentDictionary<string, Hashtable> InstallParentAndDependencyPackag
863863
ConcurrentQueue<string> warningMsgs = new ConcurrentQueue<string>();
864864

865865
// TODO: figure out a good threshold and parallel count
866-
int processorCount = Environment.ProcessorCount;
866+
int processorCount = 2; //Environment.ProcessorCount;
867867
_cmdletPassedIn.WriteDebug($"parentAndDeps.Count is {parentAndDeps.Count}, processor count is: {processorCount}");
868868
if (parentAndDeps.Count > processorCount)
869869
{

test/InstallPSResourceTests/InstallPSResourceContainerRegistryServer.Tests.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,8 @@ Describe 'Test Install-PSResource for ACR scenarios' -tags 'CI' {
178178
#}
179179

180180
It "Install resource with a dependency (should install both parent and dependency)" {
181-
Install-PSResource -Name $testModuleParentName -Repository $ACRRepoName -TrustRepository
181+
$DebugPreference = 'SilentlyContinue'
182+
Install-PSResource -Name $testModuleParentName -Repository $ACRRepoName -TrustRepository -Debug -Verbose
182183

183184
$parentPkg = Get-InstalledPSResource $testModuleParentName
184185
$parentPkg.Name | Should -Be $testModuleParentName

0 commit comments

Comments
 (0)