Skip to content

Commit 9cfc444

Browse files
Ensure that the service is started if it already exists.
1 parent 97bc753 commit 9cfc444

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/ext/test_ext_2400_tg_async.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ async def __perform_setup(self):
6262
)
6363
(count,) = await cursor.fetchone()
6464
if count > 0:
65+
try:
66+
await cursor.callproc(
67+
"dbms_service.start_service", [self.service_name]
68+
)
69+
except Exception as e:
70+
if not str(e).startswith("ORA-44305:"):
71+
raise
6572
return
6673
await cursor.execute(
6774
f"""

0 commit comments

Comments
 (0)