Skip to content

Commit

Permalink
chore: take care of correct mutex name in case assembly path is null …
Browse files Browse the repository at this point in the history
…or empty
  • Loading branch information
Lorilatschki committed Aug 3, 2023
1 parent e2b5c6a commit 42c79a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NUnitTestAdapter/NUnitEngine/NUnitEngineAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public void GenerateTestOutput(NUnitResults testResults, string assemblyPath, st

var resultService = GetService<IResultService>();

using (Mutex mutex = new Mutex(false, assemblyPath))
using (Mutex mutex = new Mutex(false, string.IsNullOrWhiteSpace(assemblyPath) ? nameof(GenerateTestOutput) : assemblyPath))
{
bool received = false;
try
Expand Down

0 comments on commit 42c79a8

Please sign in to comment.