Skip to content

Commit 1416ff0

Browse files
committed
fix tests
1 parent e62e013 commit 1416ff0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/matrix-sdk/src/widget/machine/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ impl WidgetMachine {
276276
if !capabilities.update_delayed_event {
277277
return vec![Self::send_from_widget_error_string_response(
278278
raw_request,
279-
"Not allowed: missing the {UPDATE_DELAYED_EVENT} capability.",
279+
format!("Not allowed: missing the {UPDATE_DELAYED_EVENT} capability."),
280280
)];
281281
}
282282

crates/matrix-sdk/tests/integration/widget.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ async fn test_send_delayed_message_event() {
567567
.await;
568568
mock_server
569569
.mock_room_send()
570-
.with_delay(Duration::from_micros(1000))
570+
.with_delay(Duration::from_millis(1000))
571571
.for_type(MessageLikeEventType::RoomMessage)
572572
.respond_with(ResponseTemplate::new(200).set_body_json(json!({
573573
"delay_id": "1234",
@@ -614,7 +614,7 @@ async fn test_send_delayed_state_event() {
614614

615615
mock_server
616616
.mock_room_send_state()
617-
.with_delay(Duration::from_micros(1000))
617+
.with_delay(Duration::from_millis(1000))
618618
.for_type(StateEventType::RoomName)
619619
.respond_with(ResponseTemplate::new(200).set_body_json(json!({
620620
"delay_id": "1234",

0 commit comments

Comments
 (0)