Artifact bd22f343ed8774ede1a38d7ee975eaaddb874c6a0aa1911eaf1d5721c2299eb7:
- File internal/ingest/rebuildpanic_test.go — part of check-in [f5b783db61] at 2026-10-13 15:35:25 on branch rebuild-oom — A rebuild recreates its indexes with the sort on disk, and one store's rebuild panic no longer ends the process (user: zeitgeist, size: 443) [annotate] [blame] [check-ins using] [more...]
package ingest import "testing" // One store's rebuild panicking (the SQLite driver panics when it runs // out of memory) is that rebuild's error, not the process's end. func TestARebuildPanicIsThatRebuildsError(t *testing.T) { rebuild := func() (_ int, err error) { defer recoverRebuild("big", &err) panic("sqlite3: out of memory") } if _, err := rebuild(); err == nil { t.Fatal("FAIL: a panicking rebuild returned no error") } }