-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathMultiInterface_All_Runner.cs
35 lines (32 loc) · 1.57 KB
/
MultiInterface_All_Runner.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Xunit;
using Xunit.Abstractions;
namespace Orleans.Indexing.Tests.MultiInterface
{
public abstract class MultiInterface_All_Runner : IndexingTestRunnerBase
{
protected MultiInterface_All_Runner(BaseIndexingFixture fixture, ITestOutputHelper output)
: base(fixture, output)
{
}
[Fact, TestCategory("BVT"), TestCategory("Indexing")]
public async Task Test_MultiInterface_All()
{
const int NumRepsPerTest = 3;
IEnumerable<Task> getTasks(IEnumerable<Func<IndexingTestRunnerBase, int, Task>> getTasksFuncs)
=> Enumerable.Range(0, NumRepsPerTest).SelectMany(ii => getTasksFuncs.Select(lambda => lambda(this, ii)));
// Flags for bug diagnosing
var testIndexTypes = TestIndexPartitionType.All;
//var testIndexTypes = TestIndexPartitionType.PerSilo;
await Task.WhenAll(getTasks(MultiInterface_AI_EG_Runner.GetAllTestTasks(testIndexTypes))
.Concat(getTasks(MultiInterface_AI_LZ_Runner.GetAllTestTasks(testIndexTypes)))
.Concat(getTasks(MultiInterface_TI_EG_Runner.GetAllTestTasks(testIndexTypes)))
.Concat(getTasks(MultiInterface_TI_LZ_Runner.GetAllTestTasks(testIndexTypes)))
.Concat(getTasks(MultiInterface_XI_EG_Runner.GetAllTestTasks(testIndexTypes)))
.Concat(getTasks(MultiInterface_XI_LZ_Runner.GetAllTestTasks(testIndexTypes))));
}
}
}