diff --git a/tests/StackExchange.Redis.Tests/RoleTests.cs b/tests/StackExchange.Redis.Tests/RoleTests.cs index 54f82cdd9..c348831b2 100644 --- a/tests/StackExchange.Redis.Tests/RoleTests.cs +++ b/tests/StackExchange.Redis.Tests/RoleTests.cs @@ -17,7 +17,13 @@ public Roles(ITestOutputHelper output, SharedConnectionFixture fixture) : base(o public void PrimaryRole(bool allowAdmin) // should work with or without admin now { using var conn = Create(allowAdmin: allowAdmin); - var server = conn.GetServers().First(conn => !conn.IsReplica); + var servers = conn.GetServers(); + Log("Server list:"); + foreach (var s in servers) + { + Log($" Server: {s.EndPoint} (isConnected: {s.IsConnected}, isReplica: {s.IsReplica})"); + } + var server = servers.First(conn => !conn.IsReplica); var role = server.Role(); Assert.NotNull(role);