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
Exclude whole test without e2ee
  • Loading branch information
andybalaam committed Dec 3, 2024
1 parent 6f049f9 commit 6f1588f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/matrix-sdk/src/test_utils/mocks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,8 @@ impl MatrixMockServer {
/// # Examples
///
/// ```
/// # #[cfg(feature = "e2e-encryption")]
/// # {
/// # tokio_test::block_on(async {
/// use matrix_sdk::test_utils::mocks::MatrixMockServer;
///
Expand All @@ -511,14 +513,12 @@ impl MatrixMockServer {
///
/// mock_server.mock_room_keys_version().exists().expect(1).mount().await;
///
/// # #[cfg(feature = "e2e-encryption")]
/// # {
/// let exists =
/// client.encryption().backups().exists_on_server().await.unwrap();
///
/// assert!(exists);
/// # }
/// # });
/// # }
/// ```
pub fn mock_room_keys_version(&self) -> MockEndpoint<'_, RoomKeysVersionEndpoint> {
let mock = Mock::given(method("GET"))
Expand Down

0 comments on commit 6f1588f

Please sign in to comment.