DLNA renderers, app updates told like Librarian, acquisition without Lidarr, Collection and admin rework (M502–M505, M542) #156

Merged
bvandeusen merged 117 commits from dev into main 2026-10-26 12:32:33 -04:00
Showing only changes of commit 304caaee02 - Show all commits
+7 -3
View File
@@ -198,10 +198,14 @@ func TestLookup_KeepsToTheRateLimit(t *testing.T) {
t.Fatal(err) t.Fatal(err)
} }
} }
// The client spaces its sends by minInterval; the server sees arrivals,
// which transit can bunch by a few milliseconds (389ms under -race, CI run
// 9543). What AcoustID enforces is 3 a second at its end, so that is the
// bound: minInterval's headroom is what absorbs the bunching.
const serviceLimit = time.Second / 3
for i := 1; i < len(at); i++ { for i := 1; i < len(at); i++ {
// A little slack for the server's own clock reading. if gap := at[i].Sub(at[i-1]); gap < serviceLimit {
if gap := at[i].Sub(at[i-1]); gap < minInterval-10*time.Millisecond { t.Errorf("requests %d and %d arrived %s apart, want at least %s", i-1, i, gap, serviceLimit)
t.Errorf("requests %d and %d were %s apart, want at least %s", i-1, i, gap, minInterval)
} }
} }
} }