diff --git a/builder/hyperv/vmcx/builder_test.go b/builder/hyperv/vmcx/builder_test.go index 44d4a2c13..23d64458c 100644 --- a/builder/hyperv/vmcx/builder_test.go +++ b/builder/hyperv/vmcx/builder_test.go @@ -21,6 +21,7 @@ func testConfig() map[string]interface{} { "iso_url": "http://www.packer.io", "shutdown_command": "yes", "ssh_username": "foo", + "switch_name": "switch", // to avoid using builder.detectSwitchName which can lock down in travis-ci "ram_size": 64, "guest_additions_mode": "none", "clone_from_vmcx_path": "generated", @@ -231,7 +232,6 @@ func TestBuilderPrepare_ISOChecksumType(t *testing.T) { // Test good config["iso_checksum_type"] = "mD5" - config["switch_name"] = "switch" // to avoid using builder.detectSwitchName which can lock down in CI mode b = Builder{} warns, err = b.Prepare(config) if len(warns) > 0 { diff --git a/builder/virtualbox/common/step_shutdown_test.go b/builder/virtualbox/common/step_shutdown_test.go index b5ff526d0..0a2d9e363 100644 --- a/builder/virtualbox/common/step_shutdown_test.go +++ b/builder/virtualbox/common/step_shutdown_test.go @@ -134,7 +134,7 @@ func TestStepShutdown_shutdownDelay(t *testing.T) { t.Fatalf("bad action: %#v", action) } testDuration := time.Since(start) - if testDuration < 2500*time.Millisecond || testDuration > 2600*time.Millisecond { + if testDuration < 2500*time.Millisecond || testDuration > 2700*time.Millisecond { t.Fatalf("incorrect duration %s", testDuration) }