From d83bb4f160ed7b85a6be8ae490dba1d9ec8c5561 Mon Sep 17 00:00:00 2001 From: Slawek Kaplonski Date: Wed, 8 May 2019 16:05:51 +0200 Subject: [PATCH] Add skip_if_timeout to additional MySQL migration test Test test_forbid_offline_migrations_starting_newton from neutron.tests.functional.db.test_migrations.TestModelsMigrationsMysql module can also fail because of db timeouts when are running on overloaded test node. To not fail job because of that, this patch adds skip_if_timeout decorator to this additional test. Change-Id: Ia255d331cbb24e1fdd12212580e85423da242eae Related-Bug: #1687027 --- neutron/tests/functional/db/test_migrations.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/neutron/tests/functional/db/test_migrations.py b/neutron/tests/functional/db/test_migrations.py index b5af64498f0..9bc075c6bfa 100644 --- a/neutron/tests/functional/db/test_migrations.py +++ b/neutron/tests/functional/db/test_migrations.py @@ -361,6 +361,11 @@ class TestModelsMigrationsMysql(testlib_api.MySQLTestCaseMixin, testlib_api.SqlTestCaseLight, functional_base.BaseLoggingTestCase): + @test_base.skip_if_timeout("bug 1687027") + def test_forbid_offline_migrations_starting_newton(self): + super(TestModelsMigrationsMysql, + self).test_forbid_offline_migrations_starting_newton() + @test_base.skip_if_timeout("bug 1687027") def test_check_mysql_engine(self): engine = self.get_engine()