mirror of
https://github.com/navidrome/navidrome.git
synced 2026-10-13 21:07:10 +02: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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue