Speed up the vaultik and database package tests #265

Merged
clawbot merged 1 commits from issue-235-faster-tests into next 2026-10-07 17:12:07 +02:00
1 Commits
Author SHA1 Message Date
sneak b1717d1c62 Speed up the vaultik and database package tests (closes #235)
check / check (push) Waiting to run
In the Dockerfile test phase, internal/vaultik spent 23.6s of 31.9s in
36 tests run one at a time. 24 of them were serial only because they
call log.Initialize; they now call it before t.Parallel(), so the
logger is replaced before any parallel test runs. The 12 still serial
change the umask, TMPDIR, os.Stderr or time.Local.

TestLargeDatasets took 8.4s of the 9.8s internal/database run by
committing each of its 1,500 inserts on its own; it now makes them in
one transaction. TestDedupOnlySnapshotRestores gives its second backup
its own snapshot name instead of sleeping 1.1s for a new snapshot ID.

Model: opus-5-5
2026-10-07 13:57:55 +00:00