diff --git a/server/monitor_test.go b/server/monitor_test.go index 18ab21e2..28399c2c 100644 --- a/server/monitor_test.go +++ b/server/monitor_test.go @@ -363,7 +363,7 @@ func TestConnzLastActivity(t *testing.T) { // Test inside details of each connection ci := pollConz().Conns[0] if len(ci.Subs) != 1 { - t.Fatalf("Expected subs of 1, got %v\n", ci.Subs) + t.Fatalf("Expected subs of 1, got %v\n", len(ci.Subs)) } firstLast := ci.LastActivity if firstLast.IsZero() {