Skip to content

Commit

Permalink
fix(test): use asynchronous sleep in MQTT test
Browse files Browse the repository at this point in the history
Signed-off-by: Kate Goldenring <kate.goldenring@fermyon.com>
  • Loading branch information
kate-goldenring committed Oct 8, 2024
1 parent 7db3db7 commit d612797
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/src/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ mod test {
for _i in 0..iterations {
eventloop.poll().await?;
}
thread::sleep(time::Duration::from_secs(5));
tokio::time::sleep(Duration::from_secs(5)).await;

// Ensure that the message was received and logged by the spin app
let log = get_logs_by_label("app=spin-mqtt-message-logger").await?;
Expand Down

0 comments on commit d612797

Please sign in to comment.