Skip to content

Commit

Permalink
Make check optional for device display name on user key query over fe…
Browse files Browse the repository at this point in the history
…deration
  • Loading branch information
anoadragon453 committed Oct 27, 2022
1 parent 8357e2e commit 849d1cc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/41end-to-end-keys/04-query-key-federation.pl
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@

# TODO: Check that the content matches what we uploaded.

assert_eq( $alice_device_keys->{"unsigned"}->{"device_display_name"},
"test display name" );
# Device display names are optional for POST /user/keys/query responses.
# If one exists, ensure it's the one we expected.
my $device_display_name = $alice_device_keys->{"unsigned"}->{"device_display_name"};
(!defined $device_display_name) or ($device_display_name == "test display name") or
croak "Unexpected device_display_name: $device_display_name";

Future->done(1)
});
Expand Down

0 comments on commit 849d1cc

Please sign in to comment.