File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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" ,
You can’t perform that action at this time.
0 commit comments