Petr Horáček has posted comments on this change.

Change subject: fixing race while sampling interfaces
......................................................................


Patch Set 7: Code-Review-1

(1 comment)

http://gerrit.ovirt.org/#/c/36138/7/tests/samplingTests.py
File tests/samplingTests.py:

Line 146:     def testHostSampleReportsNewInterface(self):
Line 147:         hs_before = sampling.HostSample(os.getpid())
Line 148:         interfaces_before = set(hs_before.interfaces.iterkeys())
Line 149: 
Line 150:         with dummy(self.NEW_INTERFACE):
> please see my comment to line 157 in http://gerrit.ovirt.org/#/c/36138/5..7
we should use functional.dummy module instead (IMO). it handles random number 
suffixes
Line 151:             hs_after = sampling.HostSample(os.getpid())
Line 152:             interfaces_after = set(hs_after.interfaces.iterkeys())
Line 153:             interfaces_diff = interfaces_after - interfaces_before
Line 154:             self.assertEqual(interfaces_diff, 
set([self.NEW_INTERFACE]))


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I059a5bfa4c140d88f512dc9a51d18f02956710de
Gerrit-PatchSet: 7
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Ido Barkan <[email protected]>
Gerrit-Reviewer: Dan Kenigsberg <[email protected]>
Gerrit-Reviewer: Ido Barkan <[email protected]>
Gerrit-Reviewer: Ondřej Svoboda <[email protected]>
Gerrit-Reviewer: Petr Horáček <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to