Files
tanabata/backend/internal
H1K0 4883820f25 test(backend): encode the JPEG test fixture so it decodes
minimalJPEG() returned a hand-written byte literal that passed MIME
sniffing but failed image.Decode ("missing SOS marker"), so the upload
path left phash NULL and TestDuplicateDetection found no duplicate
clusters. Build the fixture with image/jpeg.Encode instead, so it decodes
through the same path the server uses to hash uploads. Encoding is
deterministic, so two uploads still hash identically.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-03 08:34:59 +03:00
..