Skip to content

Commit 2e05779

Browse files
committed
tests: Check global app lock before trying to release it.
1 parent af5c25b commit 2e05779

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/helpers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ def get_app_lock():
8181

8282

8383
def release_app_lock():
84+
if global_mssqlconn is None:
85+
return
8486
t1 = time.time()
8587
result = global_mssqlconn.execute_scalar("""
8688
DECLARE @result INTEGER;

0 commit comments

Comments
 (0)