fix(test): sync before searching in second searchEmails IMAP test #519

Merged
guettlibot merged 1 commits from issue-506-fix-search-emails-tests into main 2026-06-07 00:49:54 +00:00
2 changed files with 3 additions and 0 deletions
Showing only changes of commit 6853ad130f - Show all commits
@@ -3101,6 +3101,8 @@ class EmailRepositoryImpl implements EmailRepository {
}
@override
// Results are limited to emails already synced into the local SQLite FTS5
// index; call syncEmails first to ensure the index is up-to-date.
Future<List<model.Email>> searchEmails(
String accountId,
String mailboxPath,
@@ -433,6 +433,7 @@ void main() {
final r = makeRepo();
await r.accounts.addAccount(account, userPass);
await r.emails.syncEmails('test', 'INBOX');
final results = await r.emails.searchEmails(
'test',