test: rename one logged_in_client to logged_in_base_client

As it returns a `BaseClient`, it should be distinguished from all the other `logged_in_client`s that return... a `Client`.
This commit is contained in:
Benjamin Bouvier
2024-02-22 16:16:20 +01:00
parent d27bfca5e4
commit 85e8771b5a

View File

@@ -1479,7 +1479,7 @@ mod tests {
let user_id = user_id!("@alice:example.org");
let room_id = room_id!("!test:example.org");
let client = logged_in_client(user_id).await;
let client = logged_in_base_client(user_id).await;
let mut ev_builder = SyncResponseBuilder::new();
@@ -1523,7 +1523,7 @@ mod tests {
let user_id = user_id!("@alice:example.org");
let room_id = room_id!("!ithpyNKDtmhneaTQja:example.org");
let client = logged_in_client(user_id).await;
let client = logged_in_base_client(user_id).await;
let response = api::sync::sync_events::v3::Response::try_from_http_response(response_from_file(&json!({
"next_batch": "asdkl;fjasdkl;fj;asdkl;f",
@@ -1608,11 +1608,11 @@ mod tests {
#[cfg(all(feature = "e2e-encryption", feature = "experimental-sliding-sync"))]
#[async_test]
async fn when_there_are_no_latest_encrypted_events_decrypting_them_does_nothing() {
async fn test_when_there_are_no_latest_encrypted_events_decrypting_them_does_nothing() {
// Given a room
let user_id = user_id!("@u:u.to");
let room_id = room_id!("!r:u.to");
let client = logged_in_client(user_id).await;
let client = logged_in_base_client(user_id).await;
let room = process_room_join_test_helper(&client, room_id, "$1", user_id).await;
// Sanity: it has no latest_encrypted_events or latest_event
@@ -1634,7 +1634,7 @@ mod tests {
// events. In the meantime, there are tests for the most difficult logic
// inside Room. --andyb
async fn logged_in_client(user_id: &UserId) -> BaseClient {
async fn logged_in_base_client(user_id: &UserId) -> BaseClient {
let client = BaseClient::new();
client
.set_session_meta(SessionMeta {