aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgvit <gvit@ydb.tech>2022-07-07 23:29:50 +0300
committergvit <gvit@ydb.tech>2022-07-07 23:29:50 +0300
commitd783e97de9fbfbbcec1ff6ef52c8c2515d9b3576 (patch)
treee1ca0464c5057a0a06ef01d00309c70969a35b13
parentab94a1757236fc714e4bc730928e83e60afa9506 (diff)
downloadydb-d783e97de9fbfbbcec1ff6ef52c8c2515d9b3576.tar.gz
support session shutdown in ydb_serializable tool
-rw-r--r--ydb/tests/tools/ydb_serializable/lib/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ydb/tests/tools/ydb_serializable/lib/__init__.py b/ydb/tests/tools/ydb_serializable/lib/__init__.py
index 0909a02d07..1ffc67c796 100644
--- a/ydb/tests/tools/ydb_serializable/lib/__init__.py
+++ b/ydb/tests/tools/ydb_serializable/lib/__init__.py
@@ -287,7 +287,7 @@ class DatabaseChecker(object):
def __exit__(self, exc_type=None, exc_val=None, exc_tb=None):
assert self._session is not None
- if exc_type is not None:
+ if exc_type is not None or self._session.closing():
# self._session.delete()
self._session = None
else: