Skip to content

Commit

Permalink
Fix integration test.
Browse files Browse the repository at this point in the history
  • Loading branch information
brocaar committed Sep 5, 2023
1 parent c6dc9a3 commit 08cf397
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/concentratord_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ use std::env;
use std::io::Cursor;
use std::sync::{Arc, Mutex};
use std::thread;
use std::time::Duration;

use futures::StreamExt;
use paho_mqtt as mqtt;
use prost::Message;
use tokio::time::sleep;

use chirpstack_api::gw;
use chirpstack_mqtt_forwarder::config;
Expand Down Expand Up @@ -78,6 +80,8 @@ async fn end_to_end() {
}
});

// Sleep some time to receive message from MQTT broker.
sleep(Duration::from_millis(100)).await;
for _ in 0..stream.len() {
stream.next().await.unwrap().unwrap();
}
Expand Down

0 comments on commit 08cf397

Please sign in to comment.