🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
test(scanner): fix Windows flake in the quick-scan artist image spec (#6093)
Deluan Quintão9198bde34ad1
diff --git a/scanner/scanner_test.go b/scanner/scanner_test.goindex 00f91699d..8542b3ac6 100644--- a/scanner/scanner_test.go+++ b/scanner/scanner_test.go@@ -387,6 +387,11 @@ var _ = Describe("Scanner", Ordered, func() {files := fsys.MapFSfiles["Kraftwerk/Autobahn/01 - Autobahn.mp3"] = kraftwerk(track(1, "Autobahn"))fsys.SetFiles(files)+ // Backdate the previous scan so this one's new artists are unambiguously newer:+ // RefreshStats picks touched artists with a strict artist.updated_at >+ // library.last_scan_at, and Windows' coarse clock can put both in one tick.+ _, err := db.Db().ExecContext(ctx, "UPDATE library SET last_scan_at = ?", time.Now().Add(-time.Hour))+ Expect(err).ToNot(HaveOccurred())Expect(runScanner(ctx, false)).To(Succeed())resolveQueuedArtwork()