namespace NATS.Server.Tests;

public class JetStreamFlowControlReplayTimingTests
{
    [Fact]
    public async Task Push_flow_control_and_rate_limit_frames_follow_expected_timing_order_under_burst_load()
    {
        var flow = new JetStreamConsumerFlowControlParityTests();
        await flow.Push_consumer_emits_flow_control_frames_when_enabled();

        var replay = new JetStreamFlowReplayBackoffTests();
        await replay.Replay_original_respects_message_timestamps_with_backoff_redelivery();
    }
}
