Skip to content

Commit

Permalink
chore: rename gpu info function name (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
CorrectRoadH authored Jan 18, 2024
1 parent 3519c05 commit 78d35c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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
6 changes: 3 additions & 3 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()
result, err := external.GPUInfoList()
assert.NilError(t, err)
assert.Equal(t, len(GPUsInfo), 1)
assert.Equal(t, len(result), 1)
}

0 comments on commit 78d35c3

Please sign in to comment.