Skip to content

Commit 5d602c3

Browse files
committed
Add log for test guard
Signed-off-by: Xuanwo <github@xuanwo.io>
1 parent a04f8e1 commit 5d602c3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/query/service/tests/it/tests/sessions.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ pub struct TestGuard {
6161

6262
impl Drop for TestGuard {
6363
fn drop(&mut self) {
64+
debug!(
65+
"test {} is finished, starting dropping all resources",
66+
&self.thread_name
67+
);
68+
6469
// Check if session manager sill have active sessions.
6570
{
6671
let session_mgr = SessionManager::instance();
@@ -74,6 +79,8 @@ impl Drop for TestGuard {
7479
}
7580
}
7681

77-
GlobalInstance::drop_testing(&self.thread_name)
82+
GlobalInstance::drop_testing(&self.thread_name);
83+
84+
debug!("test {} resources have been dropped", &self.thread_name);
7885
}
7986
}

0 commit comments

Comments
 (0)