docs(test): clarify purpose of underscore-prefixed fields in SharedServer

Co-authored-by: jnsgruk <668505+jnsgruk@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-11-25 13:10:51 +00:00 committed by Jon Seager
parent d290ac8528
commit 650ca7a372
No known key found for this signature in database

View file

@ -4,7 +4,11 @@ use std::sync::Mutex;
use std::time::Duration; use std::time::Duration;
use tempfile::TempDir; use tempfile::TempDir;
/// Shared test server state - kept alive for the duration of all tests /// Shared test server state
/// Fields prefixed with `_` are kept alive to prevent cleanup:
/// - `_temp_dir`: keeps temporary database file from being deleted
/// - `_process`: keeps server process running
/// - `_db_url`: retained for consistency
struct SharedServer { struct SharedServer {
address: String, address: String,
admin_password: String, admin_password: String,