- AppSetting bug fix - Updated testes with base test class and editor configuration changes - Created new server and wafer counter tasks json files and pipelines to match
21 lines
409 B
C#
21 lines
409 B
C#
using System.Diagnostics;
|
|
|
|
namespace OI.Metrology.Tests;
|
|
|
|
public class BaseTestClass
|
|
{
|
|
|
|
private static int _FailedTests;
|
|
private readonly int _Threshold = 5;
|
|
|
|
protected void IncrementFailedTests()
|
|
{
|
|
if (++_FailedTests >= _Threshold)
|
|
{
|
|
for (int i = 0; i < 10; i++)
|
|
Thread.Sleep(500);
|
|
Process.GetCurrentProcess().Kill();
|
|
}
|
|
}
|
|
|
|
} |