Skip to content

Commit 4afbb25

Browse files
committed
Fix disconnect tests, now that backoff is actually working...
1 parent 5c2fab6 commit 4afbb25

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/StackExchange.Redis.Tests/ConnectingFailDetectionTests.cs

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public async Task FastNoticesFailOnConnectingSyncCompletion()
1818
try
1919
{
2020
using var conn = Create(keepAlive: 1, connectTimeout: 10000, allowAdmin: true, shared: false);
21+
conn.RawConfig.ReconnectRetryPolicy = new LinearRetry(200);
2122

2223
var db = conn.GetDatabase();
2324
db.Ping();
@@ -57,6 +58,7 @@ public async Task FastNoticesFailOnConnectingAsyncCompletion()
5758
try
5859
{
5960
using var conn = Create(keepAlive: 1, connectTimeout: 10000, allowAdmin: true, shared: false);
61+
conn.RawConfig.ReconnectRetryPolicy = new LinearRetry(200);
6062

6163
var db = conn.GetDatabase();
6264
db.Ping();

0 commit comments

Comments
 (0)