mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-31 08:28:34 +00:00
@@ -601,7 +601,7 @@ func checkHypervisorConfig(config vc.HypervisorConfig) error {
|
||||
},
|
||||
}
|
||||
|
||||
memSizeMB := int64(config.DefaultMemSz)
|
||||
memSizeMB := int64(config.MemorySize)
|
||||
|
||||
if memSizeMB == 0 {
|
||||
return errors.New("VM memory cannot be zero")
|
||||
|
@@ -476,7 +476,7 @@ func TestMinimalRuntimeConfig(t *testing.T) {
|
||||
imagePath := path.Join(dir, "image.img")
|
||||
initrdPath := path.Join(dir, "initrd.img")
|
||||
|
||||
hypervisorPath := path.Join(dir, "hypervisor")
|
||||
hypervisorPath = path.Join(dir, "hypervisor")
|
||||
kernelPath := path.Join(dir, "kernel")
|
||||
|
||||
savedDefaultImagePath := defaultImagePath
|
||||
@@ -1389,9 +1389,9 @@ func TestCheckHypervisorConfig(t *testing.T) {
|
||||
kataLog.Logger.Out = logBuf
|
||||
|
||||
config := vc.HypervisorConfig{
|
||||
ImagePath: d.imagePath,
|
||||
InitrdPath: d.initrdPath,
|
||||
DefaultMemSz: d.memBytes,
|
||||
ImagePath: d.imagePath,
|
||||
InitrdPath: d.initrdPath,
|
||||
MemorySize: d.memBytes,
|
||||
}
|
||||
|
||||
err := checkHypervisorConfig(config)
|
||||
|
Reference in New Issue
Block a user