fix(bottest): set bot in test_process_message before starting session
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:
parent
51a0e71f2c
commit
750c5907d0
1 changed files with 3 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue