Skip to content

Commit

Permalink
fixup! task(backup_tests): Move mock helpers into MatrixMockServer
Browse files Browse the repository at this point in the history
Disable use of .encryption when e2ee is disabled (in doctest)
  • Loading branch information
andybalaam committed Dec 3, 2024
1 parent 0d7bbb4 commit 673f35b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions crates/matrix-sdk/src/test_utils/mocks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -511,10 +511,13 @@ impl MatrixMockServer {
///
/// mock_server.mock_room_keys_version().exists().expect(1).mount().await;
///
/// let exists =
/// client.encryption().backups().exists_on_server().await.unwrap();
/// # #[cfg(feature = "e2e-encryption")]
/// # {
/// let exists =
/// client.encryption().backups().exists_on_server().await.unwrap();
///
/// assert!(exists);
/// assert!(exists);
/// # }
/// # });
/// ```
pub fn mock_room_keys_version(&self) -> MockEndpoint<'_, RoomKeysVersionEndpoint> {
Expand Down

0 comments on commit 673f35b

Please sign in to comment.