Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: ericstj <8918108+ericstj@users.noreply.github.com> Co-authored-by: Eric StJohn <ericstj@microsoft.com>
25 lines
959 B
C#
25 lines
959 B
C#
namespace ModelContextProtocol.Tests.Utils;
|
|
|
|
/// <summary>
|
|
/// Provides centralized constants for tests
|
|
/// </summary>
|
|
public static class TestConstants
|
|
{
|
|
/// <summary>
|
|
/// Default timeout for test operations that may be affected by CI machine load.
|
|
/// Set to 60 seconds to provide sufficient buffer for slow CI environments.
|
|
/// </summary>
|
|
public static readonly TimeSpan DefaultTimeout = TimeSpan.FromSeconds(60);
|
|
|
|
/// <summary>
|
|
/// Timeout for HttpClient operations in tests.
|
|
/// Set to 60 seconds to provide sufficient buffer for slow CI environments.
|
|
/// </summary>
|
|
public static readonly TimeSpan HttpClientTimeout = TimeSpan.FromSeconds(60);
|
|
|
|
/// <summary>
|
|
/// Timeout for short-lived HTTP requests during polling operations.
|
|
/// Set to 2 seconds for quick failure detection while polling.
|
|
/// </summary>
|
|
public static readonly TimeSpan HttpClientPollingTimeout = TimeSpan.FromSeconds(2);
|
|
}
|