WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit b940e29

Browse files
committed
Fix compiler error.
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>)'
1 parent 113cce2 commit b940e29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/xharness/Jenkins/TestServer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ IEnumerable<ITestTask> find_tasks (StreamWriter writer, string ids)
218218
using (var writer = new StreamWriter (response.OutputStream)) {
219219
// We want to randomize the order the tests are added, so that we don't build first the test for one device,
220220
// then for another, since that would not take advantage of running tests on several devices in parallel.
221-
foreach (var task in find_tasks (writer, request.Url.Query).Shuffle ()) {
221+
foreach (var task in System.Linq.Enumerable.Shuffle (find_tasks (writer, request.Url.Query))) {
222222
if (task.InProgress || task.Waiting) {
223223
writer.WriteLine ($"Test '{task.TestName}' is already executing.");
224224
} else {

0 commit comments

Comments
 (0)