Applies isolated test context per moment-run
This commit is contained in:
parent
55998419ee
commit
25a795f0fd
|
@ -3,6 +3,7 @@ using DistTestCore;
|
||||||
using Logging;
|
using Logging;
|
||||||
using Utils;
|
using Utils;
|
||||||
using KubernetesWorkflow;
|
using KubernetesWorkflow;
|
||||||
|
using NUnit.Framework.Internal;
|
||||||
|
|
||||||
namespace ContinuousTests
|
namespace ContinuousTests
|
||||||
{
|
{
|
||||||
|
@ -91,14 +92,17 @@ namespace ContinuousTests
|
||||||
|
|
||||||
private void RunMoment(int t)
|
private void RunMoment(int t)
|
||||||
{
|
{
|
||||||
try
|
using (var context = new TestExecutionContext.IsolatedContext())
|
||||||
{
|
{
|
||||||
handle.InvokeMoment(t, InitializeTest);
|
try
|
||||||
}
|
{
|
||||||
catch (Exception ex)
|
handle.InvokeMoment(t, InitializeTest);
|
||||||
{
|
}
|
||||||
Log($" > TestMoment yielded exception: " + ex);
|
catch (Exception ex)
|
||||||
exceptions.Add(ex);
|
{
|
||||||
|
Log($" > TestMoment yielded exception: " + ex);
|
||||||
|
exceptions.Add(ex);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
DecommissionTest();
|
DecommissionTest();
|
||||||
|
|
Loading…
Reference in New Issue