Path: redb-route/tests/redb.Route.Tests/Processors/AggregatorStopTests.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/tests/redb.Route.Tests/Processors/AggregatorStopTests.cs
----
using System.Collections.Concurrent;
using AwesomeAssertions;
using Microsoft.Extensions.Logging;
using redb.Route.Components;
using redb.Route.Core;
using redb.Route.Tests.Cluster;
namespace redb.Route.Tests.Processors;
///
/// An aggregation group still open when the context stops is completed (Camel forceCompletionOnStop) once the
/// consumers have stopped — no more arrivals, producers still alive for what the completion sends on — or, without the
/// option, dropped with a warning naming how many, as Camel drops an in-memory repository on stop. It used to be dropped
/// without a word: the next start compiles a new aggregator and the old one's groups were simply gone.
///
public class AggregatorStopTests
{
private static async Task<(RouteContext Context, ConcurrentQueue