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/651705 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=14ed5515b9a 3fbc01d03270dfc c210586e781bc4
Committed: https:/
Submitter: Zuul
Branch: stable/rocky
commit 14ed5515b9a3fbc 01d03270dfcc210 586e781bc4
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