Dan Kenigsberg has submitted this change and it was merged.

Change subject: tests: sampling: more careful elapsedTime check
......................................................................


tests: sampling: more careful elapsedTime check

When checking HostMonitor.get() with empty samples
on a slow host, it is possible that elapsedTime will be
very low but not zero, thus breaking the test with
a false negative.

To fix that, we fake time.time.

Change-Id: Ibe0c1103b18a667f62577296633efd62e0ad765a
Signed-off-by: Francesco Romani <from...@redhat.com>
Reviewed-on: https://gerrit.ovirt.org/41504
Reviewed-by: Dan Kenigsberg <dan...@redhat.com>
Continuous-Integration: Jenkins CI
---
M tests/samplingTests.py
1 file changed, 6 insertions(+), 4 deletions(-)

Approvals:
  Jenkins CI: Passed CI tests
  Dan Kenigsberg: Looks good to me, approved
  Francesco Romani: Verified



-- 
To view, visit https://gerrit.ovirt.org/41504
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ibe0c1103b18a667f62577296633efd62e0ad765a
Gerrit-PatchSet: 4
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Francesco Romani <from...@redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <dan...@redhat.com>
Gerrit-Reviewer: Francesco Romani <from...@redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: automat...@ovirt.org
_______________________________________________
vdsm-patches mailing list
vdsm-patches@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to