Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 264d60f

Browse files
committed
Add RedisSentinel test accessing readOnly slave client
1 parent a3c495d commit 264d60f

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

lib/ServiceStack.Client.dll

512 Bytes
Binary file not shown.

lib/ServiceStack.Common.dll

0 Bytes
Binary file not shown.

lib/ServiceStack.Interfaces.dll

0 Bytes
Binary file not shown.

tests/ServiceStack.Redis.Tests/Redis3SentinelSetupTests.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,14 @@ public void Can_connect_to_GoogleCloud_3SentinelSetup()
8282
client.SetEntry("Sentinel3Setup", "GoogleCloud");
8383

8484
var result = client.GetEntry("Sentinel3Setup");
85+
Assert.That(result, Is.EqualTo("GoogleCloud"));
86+
}
87+
88+
using (var readOnly = redisManager.GetReadOnlyClient())
89+
{
90+
"{0}:{1}".Print(readOnly.Host, readOnly.Port);
8591

92+
var result = readOnly.GetEntry("Sentinel3Setup");
8693
Assert.That(result, Is.EqualTo("GoogleCloud"));
8794
}
8895
}

0 commit comments

Comments
 (0)