Skip to content

Commit

Permalink
What in the hell
Browse files Browse the repository at this point in the history
  • Loading branch information
NickCraver committed Oct 31, 2023
1 parent 23d59cb commit 01805ac
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions tests/StackExchange.Redis.Tests/RoleTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,19 @@ public void PrimaryRole(bool allowAdmin) // should work with or without admin no
Log($"Chosen primary: {server.EndPoint} (role: {role})");
if (allowAdmin)
{
Log("Info dump:");
Log(server.InfoRaw());
Log($"Info (Replication) dump for {server.EndPoint}:");
Log(server.InfoRaw("Replication"));
Log("");

foreach (var s in servers)
{
if (s.IsReplica)
{
Log($"Info (Replication) dump for {s.EndPoint}:");
Log(s.InfoRaw("Replication"));
Log("");
}
}
}
Assert.NotNull(role);
Assert.Equal(role.Value, RedisLiterals.master);
Expand Down

0 comments on commit 01805ac

Please sign in to comment.