We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8004eb2 commit 167434bCopy full SHA for 167434b
tests/StackExchange.Redis.Tests/ConfigTests.cs
@@ -442,6 +442,16 @@ public async Task GetInfo()
442
}
443
var cpuCount = cpu.Count();
444
Assert.True(cpuCount > 2);
445
+ if (cpu.Key != "CPU")
446
+ {
447
+ // seem to be seeing this in logs; add lots of detail
448
+ var sb = new StringBuilder("Expected CPU, got ").AppendLine(cpu.Key);
449
+ foreach (var setting in cpu)
450
451
+ sb.Append(setting.Key).Append('=').AppendLine(setting.Value);
452
+ }
453
+ Assert.Fail(sb.ToString());
454
455
Assert.Equal("CPU", cpu.Key);
456
Assert.Contains(cpu, x => x.Key == "used_cpu_sys");
457
Assert.Contains(cpu, x => x.Key == "used_cpu_user");
0 commit comments