mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-19 07:14:22 +01:00
virtcontainers: Make max vCPU config less QEMU specific
Even though it's still actually defined as the QEMU upper bound, it's now abstracted away through govmm. Signed-off-by: Samuel Ortiz <s.ortiz@apple.com>
This commit is contained in:
@@ -11,6 +11,7 @@ import (
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/kata-containers/kata-containers/src/runtime/pkg/govmm"
|
||||
govmmQemu "github.com/kata-containers/kata-containers/src/runtime/pkg/govmm/qemu"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
@@ -54,10 +55,10 @@ func TestQemuArm64MemoryTopology(t *testing.T) {
|
||||
assert.Equal(expectedMemory, m)
|
||||
}
|
||||
|
||||
func TestMaxQemuVCPUs(t *testing.T) {
|
||||
func TestMaxVCPUs(t *testing.T) {
|
||||
assert := assert.New(t)
|
||||
|
||||
vCPUs := MaxQemuVCPUs()
|
||||
vCPUs := govmm.MaxVCPUs()
|
||||
assert.Equal(uint32(123), vCPUs)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user