test: stabilize metrics flush visibility
Some checks failed
Build and Test / Secret Scan (push) Waiting to run
Build and Test / Frontend & Backend (push) Waiting to run
Core E2E Tests / Playwright Core E2E (push) Waiting to run
Update Integration Tests / Update Flow Integration Tests (push) Has been cancelled

This commit is contained in:
rcourtman 2026-04-09 10:58:04 +01:00
parent b017f8edcd
commit 76c3f1ac88

View file

@ -167,7 +167,7 @@ func TestStoreFlushMakesQueuedWritesVisible(t *testing.T) {
}
defer store.Close()
ts := time.Unix(2000, 0)
ts := time.Now().UTC().Add(-time.Second)
store.Write("node", "node-1", "cpu", 42, ts)
// With a buffer size of 1, the write above is already queued asynchronously.