mirror of
https://github.com/navidrome/navidrome.git
synced 2026-08-01 07:21:17 +00:00
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:
parent
a98bebc314
commit
9e3fc91cec
@ -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()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user