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 1e6bad3 PROTON-2655 Ensure that reconnect failed timeout can be met
1e6bad3 is described below
commit 1e6bad3040326c0499654b88b6cd5397e1d7759a
Author: Timothy Bish <[email protected]>
AuthorDate: Mon Nov 28 14:51:56 2022 -0500
PROTON-2655 Ensure that reconnect failed timeout can be met
The timeout is shorter that the total possible time it can take
to schedule the full set of reconnect attempts if the CI box is
overloaded. The timeout should extend beyond the possible time
that the reconnection attempts can take.
---
.../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 5ca9531..b0b6b24 100644
--- a/test/Proton.Client.Tests/Client/Implementation/ClientReconnectTest.cs
+++ b/test/Proton.Client.Tests/Client/Implementation/ClientReconnectTest.cs
@@ -61,8 +61,8 @@ namespace Apache.Qpid.Proton.Client.Implementation
ConnectionOptions options = new ConnectionOptions();
options.ReconnectOptions.ReconnectEnabled = true;
- options.ReconnectOptions.MaxReconnectAttempts = 5;
- options.ReconnectOptions.ReconnectDelay = 10;
+ options.ReconnectOptions.MaxReconnectAttempts = 2;
+ options.ReconnectOptions.ReconnectDelay = 5;
options.ReconnectOptions.UseReconnectBackOff = false;
options.ReconnectOptions.AddReconnectLocation(backupAddress,
backupPort);
options.ConnectedHandler = (connection, context) =>
@@ -103,7 +103,7 @@ namespace Apache.Qpid.Proton.Client.Implementation
Assert.IsTrue(connected.Wait(TimeSpan.FromSeconds(5)));
Assert.IsTrue(disconnected.Wait(TimeSpan.FromSeconds(5)));
Assert.IsTrue(reconnected.Wait(TimeSpan.FromSeconds(5)));
- Assert.IsTrue(failed.Wait(TimeSpan.FromSeconds(5)));
+ Assert.IsTrue(failed.Wait(TimeSpan.FromSeconds(15)));
connection.Close();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]