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:
Alice Frosi 2019-03-06 14:10:41 +01:00
parent ec6a1cc823
commit 6242af34e4

View File

@ -38,7 +38,6 @@ func TestQemuS390xCPUModel(t *testing.T) {
func TestQemuS390xMemoryTopology(t *testing.T) {
assert := assert.New(t)
s390x := newTestQemu(QemuCCWVirtio)
memoryOffset := 1024
hostMem := uint64(1024)
mem := uint64(120)
@ -46,7 +45,7 @@ func TestQemuS390xMemoryTopology(t *testing.T) {
expectedMemory := govmmQemu.Memory{
Size: fmt.Sprintf("%dM", mem),
Slots: slots,
MaxMem: fmt.Sprintf("%dM", hostMem+uint64(memoryOffset)),
MaxMem: fmt.Sprintf("%dM", hostMem),
}
m := s390x.memoryTopology(mem, hostMem, slots)