diff --git a/builder/parallels/common/step_remove_devices_test.go b/builder/parallels/common/step_remove_devices_test.go index eb8638097..983b6faad 100644 --- a/builder/parallels/common/step_remove_devices_test.go +++ b/builder/parallels/common/step_remove_devices_test.go @@ -48,16 +48,19 @@ func TestStepRemoveDevices_attachedIso(t *testing.T) { t.Fatal("should NOT have error") } - // Test that ISO was removed + // Test that ISO was detached if len(driver.PrlctlCalls) != 1 { t.Fatalf("bad: %#v", driver.PrlctlCalls) } - if driver.PrlctlCalls[0][2] != "--device-del" { + if driver.PrlctlCalls[0][2] != "--device-set" { t.Fatalf("bad: %#v", driver.PrlctlCalls) } if driver.PrlctlCalls[0][3] != "cdrom0" { t.Fatalf("bad: %#v", driver.PrlctlCalls) } + if driver.PrlctlCalls[0][5] != "Default CD/DVD-ROM" { + t.Fatalf("bad: %#v", driver.PrlctlCalls) + } } func TestStepRemoveDevices_floppyPath(t *testing.T) {