Skip to content

Commit

Permalink
Update from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Aug 28, 2023
1 parent 4dd1ad0 commit 601135f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rust/agama-dbus-server/tests/common/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use agama_lib::{connection_to, error::ServiceError};
use async_std::stream::StreamExt;
use std::process::{Child, Command};
use std::time::Duration;
use uuid::Uuid;
use zbus::{MatchRule, MessageStream, MessageType};

Expand Down Expand Up @@ -80,8 +81,8 @@ impl DBusServer {
/// Waits until the D-Bus daemon is ready.
// TODO: implement proper waiting instead of just using a sleep
fn wait(&self) {
let wait_time = std::time::Duration::from_millis(500);
std::thread::sleep(wait_time);
const WAIT_TIME: Duration = Duration::from_millis(500);
std::thread::sleep(WAIT_TIME);
}

/// Builds a message stream.
Expand Down

0 comments on commit 601135f

Please sign in to comment.