fix(test): sync before searching in searchEmails IMAP test
searchEmails now queries local SQLite FTS5 instead of IMAP directly
(since 65173d3). The test must call syncEmails first to populate the
local index before searching.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
156ccae83b
commit
a67b707a41
@@ -421,6 +421,7 @@ void main() {
|
|||||||
|
|
||||||
final r = makeRepo();
|
final r = makeRepo();
|
||||||
await r.accounts.addAccount(account, userPass);
|
await r.accounts.addAccount(account, userPass);
|
||||||
|
await r.emails.syncEmails('test', 'INBOX');
|
||||||
|
|
||||||
final results = await r.emails.searchEmails('test', 'INBOX', uniqueWord);
|
final results = await r.emails.searchEmails('test', 'INBOX', uniqueWord);
|
||||||
expect(results, hasLength(1));
|
expect(results, hasLength(1));
|
||||||
|
|||||||
Reference in New Issue
Block a user