Adds syncEmails('test', 'INBOX') call before searchEmails in the second backend test (searchEmails returns empty list when no messages match), matching the fix already applied to the first test in commit a67b707
Adds a clarifying comment to searchEmails in email_repository_impl.dart noting that results depend on the local FTS5 index being populated via syncEmails
Context
Since PR #503 switched searchEmails from IMAP UID SEARCH to local SQLite FTS5, the backend tests must call syncEmails first to populate the index before searching. The first test was already fixed; this completes the fix for the second test.
Test plan
flutter test test/backend/email_repository_imap_test.dart — both searchEmails tests should pass once the IMAP backend is running
CI backend test step should no longer fail on these two tests
## Summary
- Adds `syncEmails('test', 'INBOX')` call before `searchEmails` in the second backend test (`searchEmails returns empty list when no messages match`), matching the fix already applied to the first test in commit a67b707
- Adds a clarifying comment to `searchEmails` in `email_repository_impl.dart` noting that results depend on the local FTS5 index being populated via `syncEmails`
## Context
Since PR #503 switched `searchEmails` from IMAP `UID SEARCH` to local SQLite FTS5, the backend tests must call `syncEmails` first to populate the index before searching. The first test was already fixed; this completes the fix for the second test.
## Test plan
- [ ] `flutter test test/backend/email_repository_imap_test.dart` — both `searchEmails` tests should pass once the IMAP backend is running
- [ ] CI backend test step should no longer fail on these two tests
Closes #506
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
syncEmails('test', 'INBOX')call beforesearchEmailsin the second backend test (searchEmails returns empty list when no messages match), matching the fix already applied to the first test in commita67b707searchEmailsinemail_repository_impl.dartnoting that results depend on the local FTS5 index being populated viasyncEmailsContext
Since PR #503 switched
searchEmailsfrom IMAPUID SEARCHto local SQLite FTS5, the backend tests must callsyncEmailsfirst to populate the index before searching. The first test was already fixed; this completes the fix for the second test.Test plan
flutter test test/backend/email_repository_imap_test.dart— bothsearchEmailstests should pass once the IMAP backend is runningCloses #506