test(gormstore): stop the background aggregator in time-series stores

Rollup tests set the worker clock while the background aggregation loop
read it, so the race detector failed about one run in ten. These stores
now stop the loop, and the tests drive aggregation by hand.
This commit is contained in:
2026-11-24 02:42:11 +00:00
parent 9ff6de2414
commit 1b00236749
@@ -28,6 +28,8 @@ func newTimeSeriesStore(t *testing.T) *GORMStoreV2 {
LogLevel: "silent",
})
require.NoError(t, err)
// Tests drive aggregation by hand and set the worker clock; the background loop would race that write.
store.aggregationWorker.Stop()
return store
}