You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assert.NotZerof(t, v, "could not get logical CPU counts: %v", v)
66
-
t.Logf("logical cores: %d", v)
67
-
v, err=Counts(false)
65
+
assert.NotZerof(t, logicalCount, "could not get logical CPU counts: %v", logicalCount)
66
+
t.Logf("logical cores: %d", logicalCount)
67
+
physicalCount, err:=Counts(false)
68
68
common.SkipIfNotImplementedErr(t, err)
69
69
require.NoError(t, err)
70
-
assert.NotZerof(t, v, "could not get physical CPU counts: %v", v)
71
-
t.Logf("physical cores: %d", v)
70
+
assert.NotZerof(t, physicalCount, "could not get physical CPU counts: %v", physicalCount)
71
+
t.Logf("physical cores: %d", physicalCount)
72
+
assert.GreaterOrEqualf(t, logicalCount, physicalCount, "logical CPU count should be greater than or equal to physical CPU count: %v >= %v", logicalCount, physicalCount)
0 commit comments