diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2023-01-16 10:39:03 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2023-01-19 11:43:32 +0100 |
commit | 58b96128fdd1c1da961255cc82b09bb364192c3d (patch) | |
tree | 20dad661511d4029bbc4a2b6fbb756acd4374a4b /mqtt-tester/src/behaviour/publish_qos_zero_with_ident_fails.rs | |
parent | 8e90d829eea7be1a8f983012ab8dcf43006045a8 (diff) |
Add error contexts
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'mqtt-tester/src/behaviour/publish_qos_zero_with_ident_fails.rs')
-rw-r--r-- | mqtt-tester/src/behaviour/publish_qos_zero_with_ident_fails.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mqtt-tester/src/behaviour/publish_qos_zero_with_ident_fails.rs b/mqtt-tester/src/behaviour/publish_qos_zero_with_ident_fails.rs index 5f80a66..64cbddd 100644 --- a/mqtt-tester/src/behaviour/publish_qos_zero_with_ident_fails.rs +++ b/mqtt-tester/src/behaviour/publish_qos_zero_with_ident_fails.rs @@ -4,6 +4,7 @@ // file, You can obtain one at http://mozilla.org/MPL/2.0/. // +use miette::Context; use mqtt_format::v3::{ connect_return::MConnectReturnCode, identifier::MPacketIdentifier, @@ -34,7 +35,8 @@ impl BehaviourTest for PublishQosZeroWithIdentFails { session_present: false, connect_return_code: MConnectReturnCode::Accepted, }) - .await?; + .await + .context("Sending packet CONNACK")?; input .send_packet(MPublish { @@ -45,7 +47,8 @@ impl BehaviourTest for PublishQosZeroWithIdentFails { id: Some(MPacketIdentifier(1)), payload: &[0x00], }) - .await?; + .await + .context("Sending packet PUBLISH")?; Ok(()) } |