diff --git a/builder/vmware/common/driver_esx5_test.go b/builder/vmware/common/driver_esx5_test.go index 15b823737..38232bbe7 100644 --- a/builder/vmware/common/driver_esx5_test.go +++ b/builder/vmware/common/driver_esx5_test.go @@ -72,7 +72,7 @@ func TestESX5Driver_CommHost(t *testing.T) { state := new(multistep.BasicStateBag) sshConfig := SSHConfig{Comm: commConfig} state.Put("sshConfig", &sshConfig) - driver := ESX5Driver{CommConfig: commConfig} + driver := ESX5Driver{CommConfig: *(&sshConfig.Comm)} host, err := driver.CommHost(state) if err != nil {