chore: test timeout behaviour (#26554)
Some checks failed
Release / call-build-workflow (push) Has been cancelled
Release / Publish Docker :release (push) Has been cancelled
Release / Github & APT (push) Has been cancelled
Release / Demo (push) Has been cancelled
Release / Hassio Addon (push) Has been cancelled

This commit is contained in:
andig 2026-01-09 11:39:36 +01:00 • committed by GitHub
parent c335df19fc
commit cbf3bd82af
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 23 additions and 6 deletions

View file

@ -29,8 +29,7 @@ func TestMergeRatesAfter(t *testing.T) {
new := api.Rates{rate(2, 2), rate(3, 3)}
combined := api.Rates{rate(1, 1), rate(2, 2), rate(3, 3)}
data := util.NewMonitor[api.Rates](time.Hour)
data.WithClock(clock)
data := util.NewMonitor[api.Rates](time.Hour).WithClock(clock)
data.Set(old)
res, err := data.Get()