Skip to content

Commit 08cf397

Browse files
committed
Fix integration test.
1 parent c6dc9a3 commit 08cf397

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/concentratord_test.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ use std::env;
22
use std::io::Cursor;
33
use std::sync::{Arc, Mutex};
44
use std::thread;
5+
use std::time::Duration;
56

67
use futures::StreamExt;
78
use paho_mqtt as mqtt;
89
use prost::Message;
10+
use tokio::time::sleep;
911

1012
use chirpstack_api::gw;
1113
use chirpstack_mqtt_forwarder::config;
@@ -78,6 +80,8 @@ async fn end_to_end() {
7880
}
7981
});
8082

83+
// Sleep some time to receive message from MQTT broker.
84+
sleep(Duration::from_millis(100)).await;
8185
for _ in 0..stream.len() {
8286
stream.next().await.unwrap().unwrap();
8387
}

0 commit comments

Comments
 (0)