From 2667ea711aed0f16256c32951254ec0c0b613fd2 Mon Sep 17 00:00:00 2001 From: Hamish Peebles Date: Mon, 8 Jan 2024 11:10:58 +0000 Subject: [PATCH] Fix test (#5141) --- backend/integration_tests/src/send_direct_message_tests.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/integration_tests/src/send_direct_message_tests.rs b/backend/integration_tests/src/send_direct_message_tests.rs index 2ad6c72c9c..ae0e0bc8f5 100644 --- a/backend/integration_tests/src/send_direct_message_tests.rs +++ b/backend/integration_tests/src/send_direct_message_tests.rs @@ -64,7 +64,7 @@ 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, @@ -72,8 +72,8 @@ fn text_too_long_fails() { 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:?}"); } }