From cfab2c7a4a9ca5d27ca3cbab95545cc2118bdf1e Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Mon, 24 Jul 2023 13:43:31 +0100 Subject: [PATCH] Allow processing of device lists to be async (#1359) --- tests/50federation/40devicelists.pl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/50federation/40devicelists.pl b/tests/50federation/40devicelists.pl index 8dde16e38..aafe57e3a 100644 --- a/tests/50federation/40devicelists.pl +++ b/tests/50federation/40devicelists.pl @@ -738,6 +738,9 @@ } ) ) + })->then( sub { + # Wait for the device list update to be handled + sync_until_user_in_device_list_id( $user, $creator_id ) })->then( sub { # in stream_id 2, we add keys to the device but deliberately don't # tell the remote server about it. @@ -781,6 +784,9 @@ } ) ); + })->then( sub { + # Wait for the device list update to be handled + sync_until_user_in_device_list_id( $user, $creator_id ) })->then( sub { do_request_json_for( $user, method => "POST",