Handle DBConnectionError in skip_if_timeout decorator
In some cases it may happen that when db test will fail due
to timeout oslo_db.exception.DBConnectionError will be raised
instead of sqlalchemy_exc.InterfaceError.
This patch adds handling such case in skip_if_timeout decorator.
Reviewed: https:/ /review. openstack. org/651371 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=b7458b61597 2dc6ff93a12abbd 0a8f32e8da55eb
Committed: https:/
Submitter: Zuul
Branch: master
commit b7458b615972dc6 ff93a12abbd0a8f 32e8da55eb
Author: Slawek Kaplonski <email address hidden>
Date: Tue Apr 9 22:04:36 2019 +0200
Handle DBConnectionError in skip_if_timeout decorator
In some cases it may happen that when db test will fail due exception. DBConnectionErr or will be raised exc.InterfaceEr ror.
to timeout oslo_db.
instead of sqlalchemy_
This patch adds handling such case in skip_if_timeout decorator.
Change-Id: I7350d5c8847843 17c94ff42f28526 065ff399b40
Related-Bug: #1687027