From 6cd7ad82bbc8052c8bea3fb764de772c77994004 Mon Sep 17 00:00:00 2001 From: Rickard von Essen Date: Fri, 19 Aug 2016 14:34:24 +0200 Subject: [PATCH] Fixed dupliceted test --- builder/vmware/iso/driver_esx5_test.go | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/builder/vmware/iso/driver_esx5_test.go b/builder/vmware/iso/driver_esx5_test.go index e1fabe414..de3024718 100644 --- a/builder/vmware/iso/driver_esx5_test.go +++ b/builder/vmware/iso/driver_esx5_test.go @@ -96,19 +96,3 @@ func TestESX5Driver_CommHost(t *testing.T) { t.Errorf("bad vm_address: %s", address.(string)) } } - -func TestESX5Driver_UpdateVMX(t *testing.T) { - var driver ESX5Driver - data := make(map[string]string) - driver.UpdateVMX("0.0.0.0", 5900, data) - if _, ok := data["remotedisplay.vnc.ip"]; ok { - // Do not add the remotedisplay.vnc.ip on ESXi - t.Fatal("invalid VMX data key: remotedisplay.vnc.ip") - } - if enabled := data["remotedisplay.vnc.enabled"]; enabled != "TRUE" { - t.Errorf("bad VMX data for key remotedisplay.vnc.enabled: %v", enabled) - } - if port := data["remotedisplay.vnc.port"]; port != fmt.Sprint(port) { - t.Errorf("bad VMX data for key remotedisplay.vnc.port: %v", port) - } -}