fix(store): surface invalid schema_version; split migration test assertion
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -158,8 +158,11 @@ INSERT INTO accounts(name,mode,imap_host,imap_port,imap_security,auth_type,usern
|
||||
if err != nil {
|
||||
t.Fatalf("ListAccounts after migrate: %v", err)
|
||||
}
|
||||
if len(accs) != 1 || accs[0].FromAddress != "" {
|
||||
t.Fatalf("legacy account wrong after migrate: %+v", accs)
|
||||
if len(accs) != 1 {
|
||||
t.Fatalf("want 1 account after migrate, got %d", len(accs))
|
||||
}
|
||||
if accs[0].FromAddress != "" {
|
||||
t.Fatalf("legacy account FromAddress should be empty, got %q", accs[0].FromAddress)
|
||||
}
|
||||
if got := accs[0].SendFrom(); got != "login@example.com" {
|
||||
t.Fatalf("legacy account should send from username, got %q", got)
|
||||
|
||||
Reference in New Issue
Block a user