Roman Mohr has posted comments on this change. Change subject: sampling: Handle numa nodes with zero memory assigned ......................................................................
Patch Set 3: (1 comment) https://gerrit.ovirt.org/#/c/44121/3/tests/samplingTests.py File tests/samplingTests.py: Line 376: expected = {0: {'memPercent': 100, 'memFree': '0'}} Line 377: Line 378: with self._monkeyPatchedMemorySample(freeMemory='0', totalMemory='0'): Line 379: memorySample = sampling.NumaNodeMemorySample() Line 380: self.assertEqual(memorySample.nodesMemSample, expected) > I'd like to go in the direction of one assert per test. Let's consider this Done :) Had a pep8 error anyway. Line 381: with self._monkeyPatchedMemorySample(freeMemory='0', totalMemory=0): Line 382: memorySample = sampling.NumaNodeMemorySample() Line 383: self.assertEqual(memorySample.nodesMemSample, expected) Line 384: -- To view, visit https://gerrit.ovirt.org/44121 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I6be69e715e9b4a0cc8ded744b0bcc192a466c6c8 Gerrit-PatchSet: 3 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Roman Mohr <rm...@redhat.com> Gerrit-Reviewer: Andrej Krejcir <akrej...@redhat.com> Gerrit-Reviewer: Artyom Lukianov <aluki...@redhat.com> Gerrit-Reviewer: Dan Kenigsberg <dan...@redhat.com> Gerrit-Reviewer: Dudi Maroshi <d...@redhat.com> Gerrit-Reviewer: Francesco Romani <from...@redhat.com> Gerrit-Reviewer: Jenkins CI Gerrit-Reviewer: Roman Mohr <rm...@redhat.com> Gerrit-Reviewer: Roy Golan <rgo...@redhat.com> Gerrit-Reviewer: Yaniv Bronhaim <ybron...@redhat.com> Gerrit-Reviewer: automat...@ovirt.org Gerrit-HasComments: Yes _______________________________________________ vdsm-patches mailing list vdsm-patches@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches