test(artwork): separate the cover swap in time for Windows clock granularity

The quick-scan e2e swapped the cover milliseconds after the first serve; Windows'
~15ms timer granularity could collapse the stored version and the new folder
timestamp into equal values, failing the staleness assertion. A 50ms gap makes the
ordering deterministic on all platforms.
This commit is contained in:
Deluan 2026-07-17 23:36:52 -04:00
parent a98bebc314
commit 9e3fc91cec

View File

@ -152,6 +152,7 @@ var _ = Describe("BlurHash", func() {
// Replace only the cover and quick-scan: the album row stays untouched while the folder's
// images_updated_at advances the artwork version, so hash-keyed clients refetch.
time.Sleep(50 * time.Millisecond) // Windows clock granularity: the swap must be measurably later
fakeFS.Add("Artist/Album/cover.png", realPNG("p1-swapped"), time.Now())
quickScan()