From 3be56ef2e0d6e6bf665fccf07b65db08fb10b5bd Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 16 Oct 2023 06:01:59 -0400 Subject: [PATCH] Trying to fix export ci, try 1. (#4038) --- crates/apub/src/api/user_settings_backup.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/apub/src/api/user_settings_backup.rs b/crates/apub/src/api/user_settings_backup.rs index c1102791d..aa09e51dc 100644 --- a/crates/apub/src/api/user_settings_backup.rs +++ b/crates/apub/src/api/user_settings_backup.rs @@ -377,13 +377,14 @@ mod tests { import_settings(backup, import_user.clone(), context.reset_request_count()) .await .unwrap(); - let import_user_updated = LocalUserView::read(&mut context.pool(), import_user.local_user.id) - .await - .unwrap(); // wait for background task to finish sleep(Duration::from_millis(100)).await; + let import_user_updated = LocalUserView::read(&mut context.pool(), import_user.local_user.id) + .await + .unwrap(); + assert_eq!( export_user.person.display_name, import_user_updated.person.display_name