testing: Use local tcp session for DBus to avoid leftover socket files

This commit is contained in:
Vicki Pfau 2025-01-21 17:16:22 -08:00
parent 54351414fa
commit 2547b8d0ef
2 changed files with 16 additions and 1 deletions

View file

@ -112,7 +112,7 @@ pub struct TestHandle {
impl MockDBus {
pub async fn new() -> Result<MockDBus> {
let mut process = Command::new("/usr/bin/dbus-daemon")
.args(["--session", "--nofork", "--print-address"])
.args(["--nofork", "--print-address", "--config-file=data/test-dbus.conf"])
.stdout(Stdio::piped())
.spawn()?;