Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TaskRegistry CPUWatson issues due to false optimistic concurrency #8861

Closed
5 changes: 4 additions & 1 deletion src/Build.UnitTests/TestComparers/TaskRegistryComparers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

using System;
using System.Collections;
using System.Collections.Generic;
using Microsoft.Build.Evaluation;
using Microsoft.Build.Execution;
Expand All @@ -28,7 +29,9 @@ public bool Equals(TaskRegistry x, TaskRegistry y)
{
Assert.Equal(xp.Key, yp.Key, TaskRegistry.RegisteredTaskIdentity.RegisteredTaskIdentityComparer.Exact);
Assert.Equal(xp.Value, yp.Value, new RegisteredTaskRecordComparer());
});
},
TaskRegistry.RegisteredTaskIdentity.RegisteredTaskIdentityComparer.Exact,
true);

return true;
}
Expand Down
Loading