File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -208,9 +208,12 @@ sub sync_until_user_in_device_list_id
208208 my $alice_device_keys = $alice_keys -> { $user2 -> device_id };
209209
210210 # TODO: Check that the content matches what we uploaded.
211-
212- assert_eq( $alice_device_keys -> {" unsigned" }-> {" device_display_name" },
213- " test display name" );
211+ # Device display names aren't mandated in the POST /user/keys/query response,
212+ # and they're considered optional in the GET /user/devices/{userId} response.
213+ # So accept either a match or a lack of key.
214+ my $device_display_name = $alice_device_keys -> {" unsigned" }-> {" device_display_name" };
215+ (!defined $device_display_name ) or ($device_display_name == " test display name" ) or
216+ croak " Unexpected device_display_name: $device_display_name " ;
214217
215218 Future-> done(1)
216219 });
You can’t perform that action at this time.
0 commit comments