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 f60536a commit 9eb67ffCopy full SHA for 9eb67ff
tests/client_test.go
@@ -626,6 +626,18 @@ func TestStats(t *testing.T) {
626
if stats.Connections.Accepted < 1 {
627
t.Errorf("Bad connections: %v", stats.Connections)
628
}
629
+
630
+ if val, ok := stats.Slabs[upstream]; ok {
631
+ if val.Pages.Used < 1 {
632
+ t.Errorf("Slabs pages stats missing: %v", val.Pages)
633
+ }
634
+ if len(val.Slots) < 1 {
635
+ t.Errorf("Slab slots not visible in stats: %v", val.Slots)
636
637
+ } else {
638
+ t.Errorf("Slab stats for upsteam '%v' not found", upstream)
639
640
641
if stats.HTTPRequests.Total < 1 {
642
t.Errorf("Bad HTTPRequests: %v", stats.HTTPRequests)
643
0 commit comments