This is an automated email from the ASF dual-hosted git repository.
tabish pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-proton-dotnet.git
The following commit(s) were added to refs/heads/main by this push:
new ee1eb7a PROTON-2655 Extends test timeout and reduce duration of
backoff
ee1eb7a is described below
commit ee1eb7abfefcddc1cbf62505da1c5af427a5f7db
Author: Timothy Bish <[email protected]>
AuthorDate: Mon Nov 28 16:56:32 2022 -0500
PROTON-2655 Extends test timeout and reduce duration of backoff
Allow for longer time before test times out and reduce the backoff
range on the reconnection attempts to avoid over long test runs.
---
.../Client/Implementation/ClientReconnectTest.cs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
a/test/Proton.Client.Tests/Client/Implementation/ClientReconnectTest.cs
b/test/Proton.Client.Tests/Client/Implementation/ClientReconnectTest.cs
index b0b6b24..b7eb591 100644
--- a/test/Proton.Client.Tests/Client/Implementation/ClientReconnectTest.cs
+++ b/test/Proton.Client.Tests/Client/Implementation/ClientReconnectTest.cs
@@ -773,7 +773,7 @@ namespace Apache.Qpid.Proton.Client.Implementation
}
}
- [Test]
+ [Test, Timeout(40_000)]
public void
TestConnectionReportsFailedAfterMaxInitialReconnectAttemptsWithBackOff()
{
using (ProtonTestServer peer = new ProtonTestServer(loggerFactory))
@@ -790,11 +790,11 @@ namespace Apache.Qpid.Proton.Client.Implementation
ConnectionOptions options = new ConnectionOptions();
options.ReconnectOptions.ReconnectEnabled = true;
options.ReconnectOptions.MaxReconnectAttempts = -1; // Try forever
if connect succeeds once.
- options.ReconnectOptions.MaxInitialConnectionAttempts = 10;
+ options.ReconnectOptions.MaxInitialConnectionAttempts = 5;
options.ReconnectOptions.WarnAfterReconnectAttempts = 2;
options.ReconnectOptions.ReconnectDelay = 10;
options.ReconnectOptions.UseReconnectBackOff = true;
- options.ReconnectOptions.MaxReconnectDelay = 100;
+ options.ReconnectOptions.MaxReconnectDelay = 50;
IClient container = IClient.Create();
IConnection connection = container.Connect(primaryAddress,
primaryPort, options);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]