Skip to content

Commit

Permalink
more test adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
toger5 committed Nov 13, 2024
1 parent ee7a1c9 commit b2a12eb
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions crates/matrix-sdk/src/test_utils/mocks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -354,15 +354,13 @@ impl MatrixMockServer {
/// .mount()
/// .await;
///
/// let responseNotMocked = room.send_raw("m.room.reaction", json!({ "body": "Hello world" })).await?;
/// let responseNotMocked = room.send_raw("m.room.reaction", json!({ "body": "Hello world" })).await;
/// // The `m.room.reaction` event type should not be mocked by the server.
/// assert!(responseNotMocked.is_err());
///
/// assert!(
/// responseNotMocked,
/// "The event ID we mocked should match the one we received when we sent the event"
/// );
///
/// let response = room.send_raw("m.room.message", json!({ "body": "Hello world" })).await?;
///
/// // The `m.room.message` event type should be mocked by the server.
/// assert_eq!(
/// event_id,
/// response.event_id,
Expand Down

0 comments on commit b2a12eb

Please sign in to comment.