test: AccountSyncManager integration tests without real servers (A3) #46

Merged
guettlibot merged 1 commits from task/a3-jmap-injectable-http-client into main 2026-05-14 08:49:30 +00:00
guettlibot commented 2026-05-14 08:36:49 +00:00 (Migrated from codeberg.org)

Summary

  • IMAP sync test now passes _fakeImapConnect (throws SocketException immediately) so CI never opens a real TCP connection to localhost:143
  • New JMAP sync test exercises _JmapAccountSync end-to-end through fake repositories — no HTTP client needed since _JmapAccountSync delegates all I/O to injectable repository interfaces
  • Both tests verify that syncEmails is called at least once per account, proving the sync loop starts and dispatches correctly

Closes part of #19 (A3).

## Summary - IMAP sync test now passes `_fakeImapConnect` (throws `SocketException` immediately) so CI never opens a real TCP connection to localhost:143 - New JMAP sync test exercises `_JmapAccountSync` end-to-end through fake repositories — no HTTP client needed since `_JmapAccountSync` delegates all I/O to injectable repository interfaces - Both tests verify that `syncEmails` is called at least once per account, proving the sync loop starts and dispatches correctly Closes part of #19 (A3).
Sign in to join this conversation.