Make test_server_proto_ddlprop_01 less flaky with retries
@@ -2111,6 +2111,11 @@ class TestServerProtoDdlPropagation(tb.QueryTestCase):
finally:
await con2.aclose()
+ # Other tests mutate global DDL, hence try a few times.
+ async for tr in self.try_until_succeeds(
+ ignore=edgedb.TransactionSerializationError
+ ):
+ async with tr:
await self.con.execute('''
CREATE SUPERUSER ROLE ddlprop01 {
SET password := 'aaaa';
@@ -2140,6 +2145,11 @@ class TestServerProtoDdlPropagation(tb.QueryTestCase):
finally:
await con3.aclose()
+ # Other tests mutate global DDL, hence try a few times.
+ async for tr in self.try_until_succeeds(
+ ignore=edgedb.TransactionSerializationError
+ ):
+ async with tr:
await self.con.execute('''
DROP ROLE ddlprop01;
''')
