Skip to content

Commit

Permalink
add missing cfg_attr on deserialisation db test
Browse files Browse the repository at this point in the history
Signed-off-by: strawberry <[email protected]>
  • Loading branch information
jevolk authored and girlbossceo committed Jan 15, 2025
1 parent f59e3d8 commit 9ebb39c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/database/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,10 @@ fn de_tuple_incomplete_with_sep() {
}

#[test]
#[should_panic(expected = "deserialization failed to consume trailing bytes")]
#[cfg_attr(
debug_assertions,
should_panic(expected = "deserialization failed to consume trailing bytes")
)]
fn de_tuple_unfinished() {
let user_id: &UserId = "@user:example.com".try_into().unwrap();
let room_id: &RoomId = "!room:example.com".try_into().unwrap();
Expand Down

0 comments on commit 9ebb39c

Please sign in to comment.