Skip to content

Commit

Permalink
Remove magic number
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusPettersson98 committed Jul 30, 2024
1 parent 9d3d8b8 commit bbe4fd1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/test-rpc/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ use super::*;

const INSTALL_TIMEOUT: Duration = Duration::from_secs(300);
const REBOOT_TIMEOUT: Duration = Duration::from_secs(30);
/// How long to wait before proceeding after a reboot and a connection to the test-runner has been
/// re-established
const POST_REBOOT_GRACE_PERIOD: Duration = Duration::from_secs(5);
const LOG_LEVEL_TIMEOUT: Duration = Duration::from_secs(60);
const DAEMON_RESTART_TIMEOUT: Duration = Duration::from_secs(30);

Expand Down Expand Up @@ -388,8 +391,7 @@ impl ServiceClient {
self.connection_handle.reset_connected_state().await;
self.connection_handle.wait_for_server().await?;

// TODO: Get rid of this magic number.
tokio::time::sleep(std::time::Duration::from_secs(5)).await;
tokio::time::sleep(POST_REBOOT_GRACE_PERIOD).await;

Ok(())
}
Expand Down

0 comments on commit bbe4fd1

Please sign in to comment.