mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
fix cpucompat_default_test (#23575)
specifically !linux TestNUMA_topologyFromLegacy_plain
related: 7d73065066
This commit is contained in:
committed by
GitHub
parent
661011f5de
commit
b58b8114f9
@@ -27,7 +27,6 @@ func TestNUMA_topologyFromLegacy_plain(t *testing.T) {
|
||||
result := topologyFromLegacy(old)
|
||||
|
||||
exp := &numalib.Topology{
|
||||
NodeIDs: idset.From[hw.NodeID]([]hw.NodeID{0}),
|
||||
Distances: numalib.SLIT{{10}},
|
||||
Cores: []numalib.Core{
|
||||
makeLegacyCore(0),
|
||||
@@ -38,12 +37,12 @@ func TestNUMA_topologyFromLegacy_plain(t *testing.T) {
|
||||
OverrideTotalCompute: 12800,
|
||||
OverrideWitholdCompute: 0,
|
||||
}
|
||||
|
||||
exp.SetNodes(idset.From[hw.NodeID]([]hw.NodeID{0}))
|
||||
// only compares compute total
|
||||
must.Equal(t, exp, result)
|
||||
|
||||
// check underlying fields
|
||||
must.Eq(t, exp.NodeIDs, result.NodeIDs)
|
||||
must.Eq(t, exp.GetNodes(), result.GetNodes())
|
||||
must.Eq(t, exp.Distances, result.Distances)
|
||||
must.Eq(t, exp.Cores, result.Cores)
|
||||
must.Eq(t, exp.OverrideTotalCompute, result.OverrideTotalCompute)
|
||||
|
||||
Reference in New Issue
Block a user