From 6242af34e4827b17ad0142f6e5a554582b17a8b7 Mon Sep 17 00:00:00 2001 From: Alice Frosi Date: Wed, 6 Mar 2019 14:10:41 +0100 Subject: [PATCH] s390x: fix TestQemuS390xMemoryTopology The memory parameters of the test are wrong Fixes: #1329 Signed-off-by: Alice Frosi --- virtcontainers/qemu_s390x_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/virtcontainers/qemu_s390x_test.go b/virtcontainers/qemu_s390x_test.go index 9bb740ca3..d64a58bd5 100644 --- a/virtcontainers/qemu_s390x_test.go +++ b/virtcontainers/qemu_s390x_test.go @@ -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)