File tree 2 files changed +3
-3
lines changed
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) {
43
43
t .Fatalf ("unable to create simulator: %s" , err )
44
44
}
45
45
defer simr .Destroy ()
46
- vmRef := simulator .Map .Any ("VirtualMachine" )
46
+ vmRef := model .Map () .Any ("VirtualMachine" )
47
47
vm , ok := vmRef .(* simulator.VirtualMachine )
48
48
if ! ok {
49
49
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) {
39
39
model , session , server := initSimulator (t )
40
40
t .Cleanup (model .Remove )
41
41
t .Cleanup (server .Close )
42
- vm := simulator .Map .Any ("VirtualMachine" ).(* simulator.VirtualMachine )
42
+ vm := model .Map () .Any ("VirtualMachine" ).(* simulator.VirtualMachine )
43
43
machine := object .NewVirtualMachine (session .Client .Client , vm .Reference ())
44
44
45
45
devices , err := machine .Device (ctx .TODO ())
@@ -157,7 +157,7 @@ func TestCreateDataDisks(t *testing.T) {
157
157
model , session , server := initSimulator (t )
158
158
t .Cleanup (model .Remove )
159
159
t .Cleanup (server .Close )
160
- vm := simulator .Map .Any ("VirtualMachine" ).(* simulator.VirtualMachine )
160
+ vm := model .Map () .Any ("VirtualMachine" ).(* simulator.VirtualMachine )
161
161
machine := object .NewVirtualMachine (session .Client .Client , vm .Reference ())
162
162
163
163
deviceList , err := machine .Device (ctx .TODO ())
You can’t perform that action at this time.
0 commit comments