]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Display NOTIFICATIONS on assert failure
authorGorka Eguileor <geguileo@redhat.com>
Tue, 26 May 2015 14:39:28 +0000 (16:39 +0200)
committerGorka Eguileor <geguileo@redhat.com>
Tue, 26 May 2015 14:48:30 +0000 (16:48 +0200)
commit4bbe1c87e26150c62e1dc8a2a5b8979896c1ddd9
treeec853763b2faa99f6c9e643b77b1456808617504
parenta6f23bc01da56decef9e24090621c9aff363103f
Display NOTIFICATIONS on assert failure

From time to time we have itermitent errors regarding the
fake_notifier.NOTIFICATIONS count.

This patch does two things to try to find out which notifications are
being fired unexpectedly:
- Make sure that fake_notifier is reset in cleanup regardless of
  exception raised by shutil.rmtree
- Display fake_notifier.NOTIFICATIONS whenever count assertion fails.

Related-Bug: #1412513
Change-Id: I07370636d8b30098dcb2a70ef1985c2f5aee81be
cinder/tests/unit/test_volume.py