Trying to fix export ci, try 1. (#4038)

This commit is contained in:
Dessalines 2023-10-16 06:01:59 -04:00 committed by GitHub
parent 9e099726e6
commit 3be56ef2e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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