diff --git a/client/internal/netflow/store/event_aggregation_test.go b/client/internal/netflow/store/event_aggregation_test.go index c0422e8b7..765149be3 100644 --- a/client/internal/netflow/store/event_aggregation_test.go +++ b/client/internal/netflow/store/event_aggregation_test.go @@ -176,6 +176,9 @@ func TestFlowAggregationOfUnknownProtocols(t *testing.T) { func TestResetAggregationWindow(t *testing.T) { store := NewAggregatingMemoryStore() + // Backdate the window start so the reset produces a different timestamp + // even on platforms with coarse clock granularity. + store.WindowStart = store.WindowStart.Add(-time.Second) store.StoreEvent(&types.Event{ ID: uuid.New(), Timestamp: time.Now(),