From 2301bf9956969b8471d5a05844da321b4467661f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20=C4=8Ctvrtka?= Date: Thu, 2 Oct 2025 14:01:29 +0200 Subject: [PATCH] PMM-11406 Test refactor. --- src/go/pt-mongodb-summary/main_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/go/pt-mongodb-summary/main_test.go b/src/go/pt-mongodb-summary/main_test.go index 9da393c6..3abbf0d5 100644 --- a/src/go/pt-mongodb-summary/main_test.go +++ b/src/go/pt-mongodb-summary/main_test.go @@ -58,9 +58,7 @@ func TestGetHostInfoResult(t *testing.T) { host, err := getHostInfo(ctx, client) require.NoError(t, err, "getHostInfo error") - - notEmpty := host.ProcessName != "" || host.Version != "" || host.ProcPath != "" || host.ProcUserName != "" || !host.ProcCreateTime.IsZero() - require.True(t, notEmpty, "At least one field in host should not be empty to ensure we got some data") + require.NotEmpty(t, host) } func TestClusterWideInfo(t *testing.T) {