Francesco Romani has posted comments on this change. Change subject: sampling: Handle numa nodes with zero memory assigned ......................................................................
Patch Set 3: Code-Review+2 (1 comment) thanks for the updates. 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 for future patches. 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 <[email protected]> Gerrit-Reviewer: Andrej Krejcir <[email protected]> Gerrit-Reviewer: Artyom Lukianov <[email protected]> Gerrit-Reviewer: Dan Kenigsberg <[email protected]> Gerrit-Reviewer: Dudi Maroshi <[email protected]> Gerrit-Reviewer: Francesco Romani <[email protected]> Gerrit-Reviewer: Jenkins CI Gerrit-Reviewer: Roman Mohr <[email protected]> Gerrit-Reviewer: Roy Golan <[email protected]> Gerrit-Reviewer: Yaniv Bronhaim <[email protected]> Gerrit-Reviewer: [email protected] Gerrit-HasComments: Yes _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
