Skip to content

Commit

Permalink
chore: rename gpu info list function name
Browse files Browse the repository at this point in the history
  • Loading branch information
CorrectRoadH committed Jan 18, 2024
1 parent 3511c4a commit 6444c35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion external/gpu.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type GPUInfo struct {
TemperatureGPU int
}

func GPUsInfo() ([]GPUInfo, error) {
func GPUInfoList() ([]GPUInfo, error) {
// execute shell
// parse result
GPUInfos := []GPUInfo{}
Expand Down
4 changes: 2 additions & 2 deletions external/gpu_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
GPUsInfo, err := external.GPUInfoList()
assert.NilError(t, err)
assert.Equal(t, len(GPUsInfo), 1)
}

0 comments on commit 6444c35

Please sign in to comment.