Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Unskip cloud-map export assertions, correct cloud venue class fixtures, and update tests/README.md to 960 server / 670 agent Test* totals.
16 lines
406 B
Go
16 lines
406 B
Go
package ai
|
|
|
|
import "testing"
|
|
|
|
func TestInferCloudVenueClassGPU(t *testing.T) {
|
|
if InferCloudVenueClass(CloudVenueReport{InstanceType: "g4dn.xlarge"}) != CloudVenueGPU {
|
|
t.Fatal("expected gpu class")
|
|
}
|
|
}
|
|
|
|
func TestInferCloudVenueClassInteractive(t *testing.T) {
|
|
if InferCloudVenueClass(CloudVenueReport{InstanceType: "t3.micro"}) != CloudVenueInteractive {
|
|
t.Fatal("expected interactive class")
|
|
}
|
|
}
|