From 77848193e433e68964428c496efdd4e646a1ad9c Mon Sep 17 00:00:00 2001 From: Vlad Khorsun Date: Thu, 13 Jun 2024 16:54:39 +0300 Subject: [PATCH] Fixed bug #23 : QA could hung when stopping trace session --- src/firebird/qa/plugin.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/firebird/qa/plugin.py b/src/firebird/qa/plugin.py index 9b0d0f54..12aaa8a3 100644 --- a/src/firebird/qa/plugin.py +++ b/src/firebird/qa/plugin.py @@ -1340,12 +1340,10 @@ class TraceSession: def __exit__(self, exc_type, exc_value, traceback) -> None: time.sleep(2) session = self.output.pop(0) - with self.act.connect_server() as srv: - srv.trace.stop(session_id=session) - self.stop_event.set() - self.trace_thread.join(5.0) - if self.trace_thread.is_alive(): - pytest.fail('Trace thread still alive') + self.stop_event.set() + self.trace_thread.join(5.0) + if self.trace_thread.is_alive(): + pytest.fail('Trace thread still alive') self.act.trace_log = self.output class ServerKeeper: