cs-codex-dist-tests/Framework/Core/TimeSet.cs

40 lines
868 B
C#
Raw Normal View History

2023-09-12 11:32:06 +00:00
namespace Core
2023-04-12 14:06:04 +00:00
{
public interface ITimeSet
{
TimeSpan HttpCallTimeout();
TimeSpan HttpCallRetryTime();
TimeSpan HttpCallRetryDelay();
2023-04-12 14:06:04 +00:00
TimeSpan WaitForK8sServiceDelay();
TimeSpan K8sOperationTimeout();
}
public class DefaultTimeSet : ITimeSet
{
public TimeSpan HttpCallTimeout()
{
return TimeSpan.FromMinutes(5);
2023-04-12 14:06:04 +00:00
}
public TimeSpan HttpCallRetryTime()
2023-04-12 14:06:04 +00:00
{
2023-05-11 10:44:53 +00:00
return TimeSpan.FromMinutes(1);
2023-04-12 14:06:04 +00:00
}
public TimeSpan HttpCallRetryDelay()
2023-04-12 14:06:04 +00:00
{
2023-06-08 11:23:26 +00:00
return TimeSpan.FromSeconds(1);
2023-04-12 14:06:04 +00:00
}
public TimeSpan WaitForK8sServiceDelay()
{
return TimeSpan.FromSeconds(10);
2023-04-12 14:06:04 +00:00
}
public TimeSpan K8sOperationTimeout()
{
return TimeSpan.FromMinutes(30);
2023-04-12 14:06:04 +00:00
}
}
}