Skip to content

Commit a2e4d89

Browse files
committed
concurrent dict
1 parent c28a02c commit a2e4d89

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Cli/dotnet/commands/dotnet-test/TestingPlatformCommand.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
using System.CommandLine;
77
using Microsoft.DotNet.Tools.Test;
88
using Microsoft.TemplateEngine.Cli.Commands;
9-
using Microsoft.Testing.Platform.Builder;
109
using Microsoft.Testing.Platform.Helpers;
1110
using Microsoft.Testing.Platform.OutputDevice;
1211
using Microsoft.Testing.Platform.OutputDevice.Terminal;
@@ -24,7 +23,7 @@ internal partial class TestingPlatformCommand : CliCommand, ICustomHelp
2423
private TestApplicationActionQueue _actionQueue;
2524
private Task _namedPipeConnectionLoop;
2625
private List<string> _args;
27-
private Dictionary<TestApplication, (string ModulePath, string TargetFramework, string Architecture, string ExecutionId)> _executions = new();
26+
private ConcurrentDictionary<TestApplication, (string ModulePath, string TargetFramework, string Architecture, string ExecutionId)> _executions = new();
2827
private byte _cancelled;
2928
private bool _isDiscovery;
3029

@@ -212,7 +211,6 @@ private void OnDiscoveredTestsReceived(object sender, DiscoveredTestEventArgs ar
212211
{
213212
var testApp = (TestApplication)sender;
214213
var appInfo = _executions[testApp];
215-
_executions[testApp] = appInfo;
216214

217215
foreach (var test in args.DiscoveredTests)
218216
{

0 commit comments

Comments
 (0)