Merge branch 'master' into feature/continuous-testing
This commit is contained in:
commit
125c3715a8
|
@ -26,6 +26,7 @@ namespace ContinuousTests
|
|||
foreach (var t in testStarters)
|
||||
{
|
||||
t.Begin();
|
||||
Thread.Sleep(TimeSpan.FromMinutes(5));
|
||||
}
|
||||
|
||||
while (true) Thread.Sleep((2 ^ 31) - 1);
|
||||
|
|
|
@ -3,6 +3,7 @@ using DistTestCore;
|
|||
using Logging;
|
||||
using Utils;
|
||||
using KubernetesWorkflow;
|
||||
using NUnit.Framework.Internal;
|
||||
|
||||
namespace ContinuousTests
|
||||
{
|
||||
|
@ -16,6 +17,7 @@ namespace ContinuousTests
|
|||
private readonly CodexNode[] nodes;
|
||||
private readonly FileManager fileManager;
|
||||
private readonly FixtureLog fixtureLog;
|
||||
private readonly string testName;
|
||||
private readonly string dataFolder;
|
||||
|
||||
public SingleTestRun(Configuration config, BaseLog overviewLog, TestHandle handle)
|
||||
|
@ -24,7 +26,7 @@ namespace ContinuousTests
|
|||
this.overviewLog = overviewLog;
|
||||
this.handle = handle;
|
||||
|
||||
var testName = handle.Test.GetType().Name;
|
||||
testName = handle.Test.GetType().Name;
|
||||
fixtureLog = new FixtureLog(new LogConfig(config.LogPath, false), testName);
|
||||
|
||||
nodes = CreateRandomNodes(handle.Test.RequiredNumberOfNodes);
|
||||
|
@ -89,6 +91,8 @@ namespace ContinuousTests
|
|||
}
|
||||
|
||||
private void RunMoment(int t)
|
||||
{
|
||||
using (var context = new TestExecutionContext.IsolatedContext())
|
||||
{
|
||||
try
|
||||
{
|
||||
|
@ -99,6 +103,7 @@ namespace ContinuousTests
|
|||
Log($" > TestMoment yielded exception: " + ex);
|
||||
exceptions.Add(ex);
|
||||
}
|
||||
}
|
||||
|
||||
DecommissionTest();
|
||||
}
|
||||
|
@ -122,7 +127,7 @@ namespace ContinuousTests
|
|||
private void OverviewLog(string msg)
|
||||
{
|
||||
Log(msg);
|
||||
overviewLog.Log(msg);
|
||||
overviewLog.Log(testName + ": " + msg);
|
||||
}
|
||||
|
||||
private CodexNode[] CreateRandomNodes(int number)
|
||||
|
|
Loading…
Reference in New Issue