Skip to content

Commit

Permalink
Fix test (#5141)
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles authored Jan 8, 2024
1 parent 3d3d80e commit 2667ea7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/integration_tests/src/send_direct_message_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,16 @@ fn text_too_long_fails() {
thread_root_message_index: None,
message_id: random_message_id(),
content: MessageContentInitial::Text(TextContent {
text: (0..5001).map(|_| '1').collect(),
text: (0..10001).map(|_| '1').collect(),
}),
replies_to: None,
forwarding: false,
message_filter_failed: None,
correlation_id: 0,
};
let response = client::user::send_message_v2(env, user1.principal, user1.canister(), &send_message_args);
if !matches!(response, user_canister::send_message_v2::Response::TextTooLong(5000)) {
panic!("SendMessage was expected to return TextTooLong(5000) but did not: {response:?}");
if !matches!(response, user_canister::send_message_v2::Response::TextTooLong(10000)) {
panic!("SendMessage was expected to return TextTooLong(10000) but did not: {response:?}");
}
}

Expand Down

0 comments on commit 2667ea7

Please sign in to comment.