diff --git a/external/gpu.go b/external/gpu.go index ea89ccf..4d2f5ac 100644 --- a/external/gpu.go +++ b/external/gpu.go @@ -22,7 +22,7 @@ type GPUInfo struct { TemperatureGPU int } -func GPUsInfo() ([]GPUInfo, error) { +func GPUInfoList() ([]GPUInfo, error) { // execute shell // parse result GPUInfos := []GPUInfo{} diff --git a/external/gpu_test.go b/external/gpu_test.go index 7e3f3ac..7e45f9c 100644 --- a/external/gpu_test.go +++ b/external/gpu_test.go @@ -7,9 +7,9 @@ import ( "gotest.tools/v3/assert" ) -func TestGPUInfos(t *testing.T) { +func TestGPUInfo(t *testing.T) { t.Skip() - GPUsInfo, err := external.GPUsInfo() + result, err := external.GPUInfoList() assert.NilError(t, err) - assert.Equal(t, len(GPUsInfo), 1) + assert.Equal(t, len(result), 1) }