Skip to content

Commit

Permalink
Log even more.
Browse files Browse the repository at this point in the history
  • Loading branch information
NickCraver committed Oct 31, 2023
1 parent f270e66 commit 23d59cb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/StackExchange.Redis.Tests/RoleTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,14 @@ public void PrimaryRole(bool allowAdmin) // should work with or without admin no
Log($" Server: {s.EndPoint} (isConnected: {s.IsConnected}, isReplica: {s.IsReplica})");
}
var server = servers.First(conn => !conn.IsReplica);

var role = server.Role();
Log($"Chosen primary: {server.EndPoint} (role: {role})");
if (allowAdmin)
{
Log("Info dump:");
Log(server.InfoRaw());
Log("");
}
Assert.NotNull(role);
Assert.Equal(role.Value, RedisLiterals.master);
var primary = role as Role.Master;
Expand Down

0 comments on commit 23d59cb

Please sign in to comment.