diff --git a/data/test-dbus.conf b/data/test-dbus.conf new file mode 100644 index 0000000..aeb6ef3 --- /dev/null +++ b/data/test-dbus.conf @@ -0,0 +1,15 @@ + + + session + + tcp:host=localhost,port=0 + EXTERNAL + ANONYMOUS + + + + + + + diff --git a/src/testing.rs b/src/testing.rs index 18d6023..e677293 100644 --- a/src/testing.rs +++ b/src/testing.rs @@ -112,7 +112,7 @@ pub struct TestHandle { impl MockDBus { pub async fn new() -> Result { 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()?;