Browse Source

functional: Do not inherit from SqlTestCaseLight

Inheriting from SqlTestCaseLight in some tests and from
SqlTestCase in some others at the same time may cause errors
in functional tests. According to comments in SqlTestCaseLight
implementation in Neutron, that's intended for unit tests
only. This patch is changing it so that all tests inherit
from the same Sql Base class.

For a long time, we've been hitting failures in gate due to
race conditions in functional tests caused by this issue.

Change-Id: Id9c917f604024f6c82b1ff638ba58bce1f2b306b
Closes-Bug: #1808146
Signed-off-by: Daniel Alvarez <dalvarez@redhat.com>
Daniel Alvarez 3 months ago
parent
commit
649c7d7af9
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      networking_ovn/tests/functional/db/test_migrations.py

+ 2
- 2
networking_ovn/tests/functional/db/test_migrations.py View File

@@ -54,11 +54,11 @@ class _TestModelsMigrationsOVN(test_migrations._TestModelsMigrations):
54 54
 
55 55
 class TestModelsMigrationsMysql(testlib_api.MySQLTestCaseMixin,
56 56
                                 _TestModelsMigrationsOVN,
57
-                                testlib_api.SqlTestCaseLight):
57
+                                testlib_api.SqlTestCase):
58 58
     pass
59 59
 
60 60
 
61 61
 class TestModelsMigrationsPostgresql(testlib_api.PostgreSQLTestCaseMixin,
62 62
                                      _TestModelsMigrationsOVN,
63
-                                     testlib_api.SqlTestCaseLight):
63
+                                     testlib_api.SqlTestCase):
64 64
     pass

Loading…
Cancel
Save