mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-01 09:42:45 +00:00
s390x: fix TestQemuS390xMemoryTopology
The memory parameters of the test are wrong Fixes: #1329 Signed-off-by: Alice Frosi <afrosi@de.ibm.com>
This commit is contained in:
parent
ec6a1cc823
commit
6242af34e4
@ -38,7 +38,6 @@ func TestQemuS390xCPUModel(t *testing.T) {
|
|||||||
func TestQemuS390xMemoryTopology(t *testing.T) {
|
func TestQemuS390xMemoryTopology(t *testing.T) {
|
||||||
assert := assert.New(t)
|
assert := assert.New(t)
|
||||||
s390x := newTestQemu(QemuCCWVirtio)
|
s390x := newTestQemu(QemuCCWVirtio)
|
||||||
memoryOffset := 1024
|
|
||||||
|
|
||||||
hostMem := uint64(1024)
|
hostMem := uint64(1024)
|
||||||
mem := uint64(120)
|
mem := uint64(120)
|
||||||
@ -46,7 +45,7 @@ func TestQemuS390xMemoryTopology(t *testing.T) {
|
|||||||
expectedMemory := govmmQemu.Memory{
|
expectedMemory := govmmQemu.Memory{
|
||||||
Size: fmt.Sprintf("%dM", mem),
|
Size: fmt.Sprintf("%dM", mem),
|
||||||
Slots: slots,
|
Slots: slots,
|
||||||
MaxMem: fmt.Sprintf("%dM", hostMem+uint64(memoryOffset)),
|
MaxMem: fmt.Sprintf("%dM", hostMem),
|
||||||
}
|
}
|
||||||
|
|
||||||
m := s390x.memoryTopology(mem, hostMem, slots)
|
m := s390x.memoryTopology(mem, hostMem, slots)
|
||||||
|
Loading…
Reference in New Issue
Block a user