mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-10-13 21:50:41 +00:00
PMM-11406 Test refactor.
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user