@@ -4494,12 +4494,12 @@ async fn test_outgoing_msg_forgery() -> Result<()> {
44944494 imex ( alice, ImexMode :: ExportSelfKeys , export_dir. path ( ) , None ) . await ?;
44954495 // We need Bob only to encrypt the forged message to Alice's key, actually Bob doesn't
44964496 // participate in the scenario.
4497- let bob = & TestContext :: new ( ) . await ;
4497+ let bob = & tcm . unconfigured ( ) . await ;
44984498 assert_eq ! ( crate :: key:: load_self_secret_keyring( bob) . await ?. len( ) , 0 ) ;
44994499 bob. configure_addr ( "bob@example.net" ) . await ;
45004500 imex ( bob, ImexMode :: ImportSelfKeys , export_dir. path ( ) , None ) . await ?;
45014501 assert_eq ! ( crate :: key:: load_self_secret_keyring( bob) . await ?. len( ) , 1 ) ;
4502- let malice = & TestContext :: new ( ) . await ;
4502+ let malice = & tcm . unconfigured ( ) . await ;
45034503 malice. configure_addr ( alice_addr) . await ;
45044504
45054505 let malice_chat_id = tcm
@@ -4509,9 +4509,8 @@ async fn test_outgoing_msg_forgery() -> Result<()> {
45094509 assert_eq ! ( crate :: key:: load_self_secret_keyring( bob) . await ?. len( ) , 1 ) ;
45104510
45114511 let sent_msg = malice. send_text ( malice_chat_id, "hi from malice" ) . await ;
4512- let msg = alice. recv_msg ( & sent_msg) . await ;
4513- assert_eq ! ( msg. state, MessageState :: OutDelivered ) ;
4514- assert ! ( !msg. get_showpadlock( ) ) ;
4512+ let msg = alice. recv_msg_opt ( & sent_msg) . await ;
4513+ assert ! ( msg. is_none( ) ) ;
45154514
45164515 Ok ( ( ) )
45174516}
0 commit comments