Centralize test timeout constants to fix sporadic CI failures (#1210)
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>
This commit is contained in:
parent
7c85ac6706
commit
8e57ac6b0e
1 changed files with 56 additions and 35 deletions
13
tests/Common/Utils/TestConstants.cs
Normal file
13
tests/Common/Utils/TestConstants.cs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
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);
|
||||
}
|
||||
Loading…
Reference in a new issue