File tree 1 file changed +13
-1
lines changed
testing/matrix-sdk-integration-testing/src/tests/sliding_sync
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -1174,7 +1174,19 @@ async fn get_room_preview_with_room_summary(
1174
1174
public_no_history_room_id : & RoomId ,
1175
1175
) {
1176
1176
// Alice has joined the room, so they get the full details.
1177
- let preview = RoomPreview :: from_room_summary ( alice, room_id) . await . unwrap ( ) ;
1177
+ let preview = match RoomPreview :: from_room_summary ( alice, room_id) . await {
1178
+ Ok ( r) => r,
1179
+ Err ( err) => {
1180
+ if let Some ( client_api_error) = err. as_client_api_error ( ) {
1181
+ if client_api_error. status_code == 404 {
1182
+ warn ! ( "Skipping the room summary test, because the server may not support it." ) ;
1183
+ return ;
1184
+ }
1185
+ }
1186
+ panic ! ( "{err}" ) ;
1187
+ }
1188
+ } ;
1189
+
1178
1190
assert_room_preview ( & preview, room_alias) ;
1179
1191
assert_eq ! ( preview. state, Some ( RoomState :: Joined ) ) ;
1180
1192
You can’t perform that action at this time.
0 commit comments