浏览代码

fix gpu_test.go Error (same type) uint64->uint32 (#1921)

Fabian Preiß 1 年之前
父节点
当前提交
3bc8b9832b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gpu/gpu_test.go

+ 1 - 1
gpu/gpu_test.go

@@ -18,7 +18,7 @@ func TestBasicGetGPUInfo(t *testing.T) {
 	case "linux", "windows":
 	case "linux", "windows":
 		assert.Greater(t, info.TotalMemory, uint64(0))
 		assert.Greater(t, info.TotalMemory, uint64(0))
 		assert.Greater(t, info.FreeMemory, uint64(0))
 		assert.Greater(t, info.FreeMemory, uint64(0))
-		assert.Greater(t, info.DeviceCount, uint64(0))
+		assert.Greater(t, info.DeviceCount, uint32(0))
 	default:
 	default:
 		return
 		return
 	}
 	}