From 9e3fc91cec8b9b7a89facac4c7cf16a7493d5fb4 Mon Sep 17 00:00:00 2001 From: Deluan Date: Fri, 17 Jul 2026 23:36:52 -0400 Subject: [PATCH] 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. --- core/artwork/e2e/blurhash_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/core/artwork/e2e/blurhash_test.go b/core/artwork/e2e/blurhash_test.go index f40e83820..d3820e501 100644 --- a/core/artwork/e2e/blurhash_test.go +++ b/core/artwork/e2e/blurhash_test.go @@ -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()