fix(bottest): set bot in test_process_message before starting session
Some checks failed
Botlib CI / build (push) Successful in 4s
BotServer CI / build (push) Successful in 22s
Bottest CI / build (push) Failing after 1m0s

The test was creating BotRunner::new() without setting a bot, causing
execute_bot_logic to fail with 'No bot configured' and return
response: None. Now calls set_bot(Bot::default()) before the session.
This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2026-04-22 12:08:31 +00:00
parent 51a0e71f2c
commit 750c5907d0

View file

@ -609,7 +609,9 @@ mod tests {
#[tokio::test]
async fn test_process_message() {
let runner = BotRunner::new();
let mut runner = BotRunner::new();
let bot = Bot::default();
runner.set_bot(bot);
let customer = Customer::default();
let session_id = runner.start_session(customer).unwrap();