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.
Change-Id: I7350d5c884784317c94ff42f28526065ff399b40
Related-Bug: #1687027
(cherry picked from commit b7458b615972dc6ff93a12abbd0a8f32e8da55eb)
Reviewed: https:/ /review. openstack. org/651706 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=3d434814ef5 2a1393f8eb0f336 72ae51188f7178
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 3d434814ef52a13 93f8eb0f33672ae 51188f7178
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 ff93a12abbd0a8f 32e8da55eb)
Related-Bug: #1687027
(cherry picked from commit b7458b615972dc6