PMM-11406 Test refactor.

This commit is contained in:
Jiří Čtvrtka
2025-10-02 14:01:29 +02:00
parent 7a26991fb3
commit 2301bf9956

View File

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