Skip to content

Commit

Permalink
Fix compiler error.
Browse files Browse the repository at this point in the history
Fixes:

> error CS0121: The call is ambiguous between the following methods or properties: 'System.Linq.Enumerable.Shuffle<TSource>(System.Collections.Generic.IEnumerable<TSource>)' and 'Microsoft.DotNet.XHarness.iOS.Shared.Utilities.Extensions.Shuffle<T>(System.Collections.Generic.IEnumerable<T>)'
  • Loading branch information
rolfbjarne committed Feb 14, 2025
1 parent 113cce2 commit b940e29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/xharness/Jenkins/TestServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ IEnumerable<ITestTask> find_tasks (StreamWriter writer, string ids)
using (var writer = new StreamWriter (response.OutputStream)) {
// We want to randomize the order the tests are added, so that we don't build first the test for one device,
// then for another, since that would not take advantage of running tests on several devices in parallel.
foreach (var task in find_tasks (writer, request.Url.Query).Shuffle ()) {
foreach (var task in System.Linq.Enumerable.Shuffle (find_tasks (writer, request.Url.Query))) {
if (task.InProgress || task.Waiting) {
writer.WriteLine ($"Test '{task.TestName}' is already executing.");
} else {
Expand Down

0 comments on commit b940e29

Please sign in to comment.