()
| 796 | |
| 797 | #[tokio::test] |
| 798 | async fn test_logout_cloud_mounted_and_active() { |
| 799 | let mut t = ClientTester::default(); |
| 800 | t.get_service().borrow_mut().do_login().await; |
| 801 | t.get_storage().borrow_mut().mount("CLOUD", "memory://").unwrap(); |
| 802 | t.get_storage().borrow_mut().cd("CLOUD:/").unwrap(); |
| 803 | t.run(r#"LOGOUT"#) |
| 804 | .expect_err("1:1: Cannot log out while the CLOUD drive is active") |
| 805 | .expect_access_token("$") |
| 806 | .check(); |
| 807 | assert!(t.get_storage().borrow().mounted().contains_key("CLOUD")); |
| 808 | } |
| 809 | |
| 810 | #[test] |
| 811 | fn test_logout_errors() { |
nothing calls this directly
no test coverage detected