Skip to content

Commit

Permalink
fix: check result of join
Browse files Browse the repository at this point in the history
  • Loading branch information
lulf committed Feb 13, 2025
1 parent b2a97d1 commit 0691ef5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions host/tests/l2cap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,19 @@ async fn l2cap_connection_oriented_channels() {
println!("Peripheral error: {:?}", e);
assert!(false)
}
(Ok(Err(e1)), Ok(Err(e2))) => {
println!("Central error: {:?}", e1);
println!("Peripheral error: {:?}", e2);
assert!(false);
}
(Ok(Err(e)), _) => {
println!("Central error: {:?}", e);
assert!(false)
}
(_, Ok(Err(e))) => {
println!("Peripheral error: {:?}", e);
assert!(false)
}
_ => {
println!("Test completed successfully");
}
Expand Down

0 comments on commit 0691ef5

Please sign in to comment.