2023-03-17 11:43:29 +01:00
|
|
|
|
namespace CodexDistTests.TestCore
|
|
|
|
|
{
|
|
|
|
|
public static class Timing
|
|
|
|
|
{
|
|
|
|
|
public static TimeSpan HttpCallTimeout()
|
|
|
|
|
{
|
2023-03-19 11:40:05 +01:00
|
|
|
|
return TimeSpan.FromSeconds(10);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static int HttpCallRetryCount()
|
|
|
|
|
{
|
|
|
|
|
return 5;
|
2023-03-17 11:43:29 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void RetryDelay()
|
|
|
|
|
{
|
|
|
|
|
Utils.Sleep(TimeSpan.FromSeconds(3));
|
|
|
|
|
}
|
2023-03-19 08:22:38 +01:00
|
|
|
|
|
2023-03-19 11:40:05 +01:00
|
|
|
|
public static void WaitForK8sServiceDelay()
|
2023-03-19 08:22:38 +01:00
|
|
|
|
{
|
|
|
|
|
Utils.Sleep(TimeSpan.FromSeconds(1));
|
|
|
|
|
}
|
2023-03-19 11:40:05 +01:00
|
|
|
|
|
|
|
|
|
public static TimeSpan K8sOperationTimeout()
|
|
|
|
|
{
|
|
|
|
|
return TimeSpan.FromMinutes(5);
|
|
|
|
|
}
|
2023-03-17 11:43:29 +01:00
|
|
|
|
}
|
|
|
|
|
}
|