wait a bit for publisher info in test.

This commit is contained in:
Martin Dahl 2024-03-19 12:11:47 +01:00
parent 285853a1e5
commit 2052ee2afd
1 changed files with 3 additions and 0 deletions

View File

@ -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();