Roy Golan has posted comments on this change.

Change subject: core: VURTI - fix handle expection in GetVmStats
......................................................................


Patch Set 3:

(1 comment)

http://gerrit.ovirt.org/#/c/25548/3/backend/manager/modules/vdsbroker/src/test/java/org/ovirt/engine/core/vdsbroker/VdsUpdateRunTimeInfoTest.java
File 
backend/manager/modules/vdsbroker/src/test/java/org/ovirt/engine/core/vdsbroker/VdsUpdateRunTimeInfoTest.java:

Line 282:         mockGetVmStatsCommand(false);
Line 283:         // start refreshing vm data... VURTI now fetches Vms list 
from ResourceManager and loop through it
Line 284:         updater.fetchRunningVms();
Line 285:         List<VM> runningAndUnchanged = 
updater.checkVmsStatusChanged();
Line 286:         Assert.assertTrue("expecting the VM to be missing from the 
running VMs map", !updater.getRunningVms().containsKey(VM_1));
> why missing? i thought we leave it in this list
very confusing names.. sorry I'll refactor this slowly out
there are 2 lists:

private _runningVms and local runningVms which the checkVmStatusChange passes 
on. when vm is unchanged we remove it from the first but leave it in the later
Line 287:         Assert.assertFalse(runningAndUnchanged.contains(VM_1));
Line 288:     }
Line 289: 
Line 290:     private void prepareForRefreshVmStatsCall() {


-- 
To view, visit http://gerrit.ovirt.org/25548
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I415804d9fa1f1288423241b8547f4cab5540914a
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Roy Golan <rgo...@redhat.com>
Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com>
Gerrit-Reviewer: Omer Frenkel <ofren...@redhat.com>
Gerrit-Reviewer: Roy Golan <rgo...@redhat.com>
Gerrit-Reviewer: automat...@ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to