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) {