File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ func TestCreate(t *testing.T) {
4343 t .Fatalf ("unable to create simulator: %s" , err )
4444 }
4545 defer simr .Destroy ()
46- vmRef := simulator .Map .Any ("VirtualMachine" )
46+ vmRef := model .Map () .Any ("VirtualMachine" )
4747 vm , ok := vmRef .(* simulator.VirtualMachine )
4848 if ! ok {
4949 t .Fatal ("failed to get reference to an existing VM on the vcsim instance" )
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ func TestGetDiskSpec(t *testing.T) {
3939 model , session , server := initSimulator (t )
4040 t .Cleanup (model .Remove )
4141 t .Cleanup (server .Close )
42- vm := simulator .Map .Any ("VirtualMachine" ).(* simulator.VirtualMachine )
42+ vm := model .Map () .Any ("VirtualMachine" ).(* simulator.VirtualMachine )
4343 machine := object .NewVirtualMachine (session .Client .Client , vm .Reference ())
4444
4545 devices , err := machine .Device (ctx .TODO ())
@@ -157,7 +157,7 @@ func TestCreateDataDisks(t *testing.T) {
157157 model , session , server := initSimulator (t )
158158 t .Cleanup (model .Remove )
159159 t .Cleanup (server .Close )
160- vm := simulator .Map .Any ("VirtualMachine" ).(* simulator.VirtualMachine )
160+ vm := model .Map () .Any ("VirtualMachine" ).(* simulator.VirtualMachine )
161161 machine := object .NewVirtualMachine (session .Client .Client , vm .Reference ())
162162
163163 deviceList , err := machine .Device (ctx .TODO ())
You can’t perform that action at this time.
0 commit comments