Skip to content

Commit

Permalink
wait a bit for publisher info in test.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-dahl committed Mar 19, 2024
1 parent 285853a commit 2052ee2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions r2r/tests/tokio_testing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ async fn tokio_testing() -> Result<(), Box<dyn std::error::Error>> {
)
.unwrap();

// wait a little for publisher info to populate(?). hack to avoid CI failures.
tokio::time::sleep(tokio::time::Duration::from_millis(100)).await;

let pub_info = node
.get_publishers_info_by_topic(&format!("/float_no_{i_context}"), false)
.unwrap();
Expand Down

0 comments on commit 2052ee2

Please sign in to comment.