Diff
Not logged in

Differences From Artifact [6fc712fa8c]:

To Artifact [4a12ad25f8]:


   241    241                                                   UiEvent::Terminate => break,
   242    242                                               }
   243    243                                           }
   244    244                                       }
   245    245                                   }
   246    246                               });
   247    247   
   248         -        assert!(nw_event_sender.send(NetworkEvent::Connected(TOKEN)).is_ok());
   249         -        assert!(ui_event_sender.send(UiEvent::CreateDirectory(DIR_NAME.to_string())).is_ok());
          248  +        assert!(nw_event_sender
          249  +                    .send(NetworkEvent::Connected(TOKEN))
          250  +                    .is_ok());
          251  +        assert!(ui_event_sender
          252  +                    .send(UiEvent::CreateDirectory(DIR_NAME.to_string()))
          253  +                    .is_ok());
   250    254           assert!(ui_event_sender.send(UiEvent::Terminate).is_ok());
   251    255   
   252    256           ::std::thread::sleep(::std::time::Duration::from_millis(500));
   253    257   
   254    258           assert!(ui_event_sender.send(UiEvent::Terminate).is_err());
   255    259           assert!(nw_event_sender.send(NetworkEvent::Disconnected).is_err());
   256    260   
   257         -        let result = ui_event_sender.send(UiEvent::CreateDirectory(DIR_NAME.to_owned())).err();
          261  +        let result = ui_event_sender
          262  +            .send(UiEvent::CreateDirectory(DIR_NAME.to_owned()))
          263  +            .err();
   258    264           if let EventSenderError::EventSubset(send_err) = unwrap!(result) {
   259    265               if let UiEvent::CreateDirectory(dir_name) = send_err.0 {
   260    266                   assert_eq!(dir_name, DIR_NAME)
   261    267               } else {
   262    268                   panic!("Expected a different event !")
   263    269               }
   264    270           } else {
   265    271               panic!("Expected a different error !")
   266    272           }
   267    273       }
   268    274   }