Adam Litke has posted comments on this change.

Change subject: storage: add a context manager for the domainLock
......................................................................


Patch Set 2:

(2 comments)

https://gerrit.ovirt.org/#/c/50272/2/tests/manifest_tests.py
File tests/manifest_tests.py:

Line 191:     def dummy(self):
Line 192:         pass
Line 193: 
Line 194:     def fail(self):
Line 195:         raise InjectedFailure()
> Thinking again, we don't need this - we can simply raise in the context man
Done
Line 196: 
Line 197: 
Line 198: class DomainLockTests(VdsmTestCase):
Line 199: 


Line 213:         try:
Line 214:             with manifest.domain_lock(1):
Line 215:                 manifest.fail()
Line 216:         except InjectedFailure:
Line 217:             pass
> Better use self.assertRaises for this:
Done


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

Gerrit-MessageType: comment
Gerrit-Change-Id: Id7b831d4fe5a67f6998f31978f2399fdebdb3ceb
Gerrit-PatchSet: 2
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Adam Litke <ali...@redhat.com>
Gerrit-Reviewer: Adam Litke <ali...@redhat.com>
Gerrit-Reviewer: Ala Hino <ah...@redhat.com>
Gerrit-Reviewer: Daniel Erez <de...@redhat.com>
Gerrit-Reviewer: Freddy Rolland <froll...@redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Nir Soffer <nsof...@redhat.com>
Gerrit-Reviewer: gerrit-hooks <automat...@ovirt.org>
Gerrit-HasComments: Yes
_______________________________________________
vdsm-patches mailing list
vdsm-patches@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to