Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
test: remove TestHotplugRemoveMemory
Browse files Browse the repository at this point in the history
HotplugRemoveMemory require to do a qmp call, but
unit test does not start a Qemu instance.

Depends-on: github.com/kata-containers/tests#1007

Signed-off-by: Jose Carlos Venegas Munoz <[email protected]>
  • Loading branch information
jcvenegas committed Dec 13, 2018
1 parent 0d80202 commit d4586d4
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions virtcontainers/qemu_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,21 +344,6 @@ func TestQemuQemuPath(t *testing.T) {
assert.Equal(path, "")
}

func TestHotplugRemoveMemory(t *testing.T) {
assert := assert.New(t)

qemuConfig := newQemuConfig()
fs := &filesystem{}
q := &qemu{
arch: &qemuArchBase{},
config: qemuConfig,
storage: fs,
}

_, err := q.hotplugRemoveDevice(&memoryDevice{0, 128}, memoryDev)
assert.Error(err)
}

func TestHotplugUnsupportedDeviceType(t *testing.T) {
assert := assert.New(t)

Expand Down

0 comments on commit d4586d4

Please sign in to comment.