Skip to content

Commit

Permalink
Increase timeout for pack tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffkl committed Jun 30, 2024
1 parent 855b7aa commit e6aabcc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1608,6 +1608,7 @@ public void PackCommand_ReferencedProjectWithJsonFile()
nugetexe,
proj1Directory,
"pack proj1.csproj -build -IncludeReferencedProjects",
timeOutInMilliseconds: (int)TimeSpan.FromMinutes(4).TotalMilliseconds,
testOutputHelper: _testOutputHelper);
Assert.True(0 == r.ExitCode, r.Output + " " + r.Errors);

Expand Down
3 changes: 2 additions & 1 deletion test/TestUtilities/Test.Utility/CommandRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ public static CommandRunnerResult Run(string filename, string workingDirectory =

process.StandardInput.Close();

if (!process.WaitForExit(timeOutInMilliseconds))
// Wait for the process to exit or the timeout to expire. The timeout increases with each retry.
if (!process.WaitForExit(timeOutInMilliseconds * (attempt + 1)))

Check failure on line 85 in test/TestUtilities/Test.Utility/CommandRunner.cs

View check run for this annotation

Azure Pipelines / NuGet.Client CI (Functional Tests on MacOS (.NET Core 3.1) Functional Tests on MacOS (.NET Core 3.1))

test/TestUtilities/Test.Utility/CommandRunner.cs#L85

test/TestUtilities/Test.Utility/CommandRunner.cs(85,71): Error CS0103: The name 'attempt' does not exist in the current context

Check failure on line 85 in test/TestUtilities/Test.Utility/CommandRunner.cs

View check run for this annotation

Azure Pipelines / NuGet.Client CI (Functional Tests on MacOS (.NET Core 3.1) Functional Tests on MacOS (.NET Core 3.1))

test/TestUtilities/Test.Utility/CommandRunner.cs#L85

test/TestUtilities/Test.Utility/CommandRunner.cs(85,71): Error CS0103: The name 'attempt' does not exist in the current context

Check failure on line 85 in test/TestUtilities/Test.Utility/CommandRunner.cs

View check run for this annotation

Azure Pipelines / NuGet.Client CI (Unit Tests on MacOS (.NET Core 3.1) Unit Tests on MacOS (.NET Core 3.1))

test/TestUtilities/Test.Utility/CommandRunner.cs#L85

test/TestUtilities/Test.Utility/CommandRunner.cs(85,71): Error CS0103: The name 'attempt' does not exist in the current context

Check failure on line 85 in test/TestUtilities/Test.Utility/CommandRunner.cs

View check run for this annotation

Azure Pipelines / NuGet.Client CI (Unit Tests on MacOS (.NET Core 3.1) Unit Tests on MacOS (.NET Core 3.1))

test/TestUtilities/Test.Utility/CommandRunner.cs#L85

test/TestUtilities/Test.Utility/CommandRunner.cs(85,71): Error CS0103: The name 'attempt' does not exist in the current context

Check failure on line 85 in test/TestUtilities/Test.Utility/CommandRunner.cs

View check run for this annotation

Azure Pipelines / NuGet.Client CI (Unit Tests on MacOS (.NET 8.0) Unit Tests on MacOS (.NET 8.0))

test/TestUtilities/Test.Utility/CommandRunner.cs#L85

test/TestUtilities/Test.Utility/CommandRunner.cs(85,71): Error CS0103: The name 'attempt' does not exist in the current context

Check failure on line 85 in test/TestUtilities/Test.Utility/CommandRunner.cs

View check run for this annotation

Azure Pipelines / NuGet.Client CI (Unit Tests on MacOS (.NET 8.0) Unit Tests on MacOS (.NET 8.0))

test/TestUtilities/Test.Utility/CommandRunner.cs#L85

test/TestUtilities/Test.Utility/CommandRunner.cs(85,71): Error CS0103: The name 'attempt' does not exist in the current context

Check failure on line 85 in test/TestUtilities/Test.Utility/CommandRunner.cs

View check run for this annotation

Azure Pipelines / NuGet.Client CI (Functional Tests on MacOS (.NET 8.0) Functional Tests on MacOS (.NET 8.0))

test/TestUtilities/Test.Utility/CommandRunner.cs#L85

test/TestUtilities/Test.Utility/CommandRunner.cs(85,71): Error CS0103: The name 'attempt' does not exist in the current context

Check failure on line 85 in test/TestUtilities/Test.Utility/CommandRunner.cs

View check run for this annotation

Azure Pipelines / NuGet.Client CI (Functional Tests on MacOS (.NET 8.0) Functional Tests on MacOS (.NET 8.0))

test/TestUtilities/Test.Utility/CommandRunner.cs#L85

test/TestUtilities/Test.Utility/CommandRunner.cs(85,71): Error CS0103: The name 'attempt' does not exist in the current context

Check failure on line 85 in test/TestUtilities/Test.Utility/CommandRunner.cs

View check run for this annotation

Azure Pipelines / NuGet.Client CI (Unit Tests on Linux (.NET Core 3.1) Unit Tests on Linux (.NET Core 3.1))

test/TestUtilities/Test.Utility/CommandRunner.cs#L85

test/TestUtilities/Test.Utility/CommandRunner.cs(85,71): Error CS0103: The name 'attempt' does not exist in the current context

Check failure on line 85 in test/TestUtilities/Test.Utility/CommandRunner.cs

View check run for this annotation

Azure Pipelines / NuGet.Client CI (Unit Tests on Linux (.NET Core 3.1) Unit Tests on Linux (.NET Core 3.1))

test/TestUtilities/Test.Utility/CommandRunner.cs#L85

test/TestUtilities/Test.Utility/CommandRunner.cs(85,71): Error CS0103: The name 'attempt' does not exist in the current context

Check failure on line 85 in test/TestUtilities/Test.Utility/CommandRunner.cs

View check run for this annotation

Azure Pipelines / NuGet.Client CI (Functional Tests on Linux (.NET Core 3.1) Functional Tests on Linux (.NET Core 3.1))

test/TestUtilities/Test.Utility/CommandRunner.cs#L85

test/TestUtilities/Test.Utility/CommandRunner.cs(85,71): Error CS0103: The name 'attempt' does not exist in the current context

Check failure on line 85 in test/TestUtilities/Test.Utility/CommandRunner.cs

View check run for this annotation

Azure Pipelines / NuGet.Client CI (Functional Tests on Linux (.NET Core 3.1) Functional Tests on Linux (.NET Core 3.1))

test/TestUtilities/Test.Utility/CommandRunner.cs#L85

test/TestUtilities/Test.Utility/CommandRunner.cs(85,71): Error CS0103: The name 'attempt' does not exist in the current context

Check failure on line 85 in test/TestUtilities/Test.Utility/CommandRunner.cs

View check run for this annotation

Azure Pipelines / NuGet.Client CI (Functional Tests on Linux (.NET 8.0) Functional Tests on Linux (.NET 8.0))

test/TestUtilities/Test.Utility/CommandRunner.cs#L85

test/TestUtilities/Test.Utility/CommandRunner.cs(85,71): Error CS0103: The name 'attempt' does not exist in the current context

Check failure on line 85 in test/TestUtilities/Test.Utility/CommandRunner.cs

View check run for this annotation

Azure Pipelines / NuGet.Client CI (Functional Tests on Linux (.NET 8.0) Functional Tests on Linux (.NET 8.0))

test/TestUtilities/Test.Utility/CommandRunner.cs#L85

test/TestUtilities/Test.Utility/CommandRunner.cs(85,71): Error CS0103: The name 'attempt' does not exist in the current context

Check failure on line 85 in test/TestUtilities/Test.Utility/CommandRunner.cs

View check run for this annotation

Azure Pipelines / NuGet.Client CI (Unit Tests on Linux (.NET 8.0) Unit Tests on Linux (.NET 8.0))

test/TestUtilities/Test.Utility/CommandRunner.cs#L85

test/TestUtilities/Test.Utility/CommandRunner.cs(85,71): Error CS0103: The name 'attempt' does not exist in the current context

Check failure on line 85 in test/TestUtilities/Test.Utility/CommandRunner.cs

View check run for this annotation

Azure Pipelines / NuGet.Client CI (Unit Tests on Linux (.NET 8.0) Unit Tests on Linux (.NET 8.0))

test/TestUtilities/Test.Utility/CommandRunner.cs#L85

test/TestUtilities/Test.Utility/CommandRunner.cs(85,71): Error CS0103: The name 'attempt' does not exist in the current context

Check failure on line 85 in test/TestUtilities/Test.Utility/CommandRunner.cs

View check run for this annotation

Azure Pipelines / NuGet.Client CI

test/TestUtilities/Test.Utility/CommandRunner.cs#L85

test/TestUtilities/Test.Utility/CommandRunner.cs(85,71): Error CS0103: The name 'attempt' does not exist in the current context

Check failure on line 85 in test/TestUtilities/Test.Utility/CommandRunner.cs

View check run for this annotation

Azure Pipelines / NuGet.Client CI

test/TestUtilities/Test.Utility/CommandRunner.cs#L85

test/TestUtilities/Test.Utility/CommandRunner.cs(85,71): Error CS0103: The name 'attempt' does not exist in the current context
{
if (!process.HasExited)
{
Expand Down

0 comments on commit e6aabcc

Please sign in to comment.