From 25f59a1592fc28c722c0c5b5ef9488af7fb4f07e Mon Sep 17 00:00:00 2001 From: Vitaly Polonetsky Date: Tue, 3 Mar 2020 20:58:09 -0800 Subject: [PATCH] Add a simple test for the call to remove all floppy controllers --- builder/virtualbox/common/step_attach_floppy_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/builder/virtualbox/common/step_attach_floppy_test.go b/builder/virtualbox/common/step_attach_floppy_test.go index 32ad4a962..75d51c333 100644 --- a/builder/virtualbox/common/step_attach_floppy_test.go +++ b/builder/virtualbox/common/step_attach_floppy_test.go @@ -38,6 +38,10 @@ func TestStepAttachFloppy(t *testing.T) { t.Fatal("should NOT have error") } + if driver.RemoveFloppyControllersVM == "" { + t.Fatal("RemoveFloppyControllers was not called") + } + if len(driver.VBoxManageCalls) != 2 { t.Fatal("not enough calls to VBoxManage") }