Skip to content

Commit 6b6aca7

Browse files
committed
Try speeding up Sentinel
1 parent 7d1aed2 commit 6b6aca7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/StackExchange.Redis.Tests/SentinelBase.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ protected async Task WaitForReadyAsync(EndPoint? expectedPrimary = null, bool wa
105105
var replicas = SentinelServerA.SentinelGetReplicaAddresses(ServiceName);
106106
if (replicas?.Length > 0)
107107
{
108-
await Task.Delay(1000).ForAwait();
108+
await Task.Delay(100).ForAwait();
109109
replicas = SentinelServerA.SentinelGetReplicaAddresses(ServiceName);
110110
await WaitForRoleAsync(checkConn.GetServer(replicas[0]), "slave", duration.Value.Subtract(sw.Elapsed)).ForAwait();
111111
}
@@ -137,7 +137,7 @@ protected async Task WaitForRoleAsync(IServer server, string role, TimeSpan? dur
137137
// ignore
138138
}
139139

140-
await Task.Delay(500).ForAwait();
140+
await Task.Delay(100).ForAwait();
141141
}
142142

143143
throw new RedisException($"Timeout waiting for server ({server.EndPoint}) to have expected role (\"{role}\") assigned");

0 commit comments

Comments
 (0)