mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
20 lines
479 B
Go
20 lines
479 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
package numalib
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/shoenig/test/must"
|
|
)
|
|
|
|
// TestScanTopology is going to be different on every machine; even the CI
|
|
// systems change sometimes so it's hard to make good assertions here.
|
|
func TestScanTopology(t *testing.T) {
|
|
top := Scan(PlatformScanners(false))
|
|
must.Positive(t, top.UsableCompute())
|
|
must.Positive(t, top.TotalCompute())
|
|
must.Positive(t, top.NumCores())
|
|
}
|