From 08c3df103ce66c8beb6a0117a82a656696b52418 Mon Sep 17 00:00:00 2001 From: Kartheek Penagamuri Date: Mon, 12 Dec 2022 17:03:06 -0800 Subject: [PATCH] use a timeout --- test/NuGet.Core.Tests/NuGet.Common.Test/MigrationRunnerTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/NuGet.Core.Tests/NuGet.Common.Test/MigrationRunnerTests.cs b/test/NuGet.Core.Tests/NuGet.Common.Test/MigrationRunnerTests.cs index 614e20a8ca3..d61c9156876 100644 --- a/test/NuGet.Core.Tests/NuGet.Common.Test/MigrationRunnerTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Common.Test/MigrationRunnerTests.cs @@ -88,7 +88,7 @@ public void Run_WhenAThreadAbandonsMutexThenNextMigrationRunReleasesMutexAndCrea void AbandonMutex() { - _orphan.WaitOne(); + _orphan.WaitOne(TimeSpan.FromMinutes(1), false); // Abandon the mutex by exiting the method without releasing } }