// Copyright 2025 The NATS Authors
// Licensed under the Apache License, Version 2.0

using Shouldly;
using ZB.MOM.NatsNet.Server;

namespace ZB.MOM.NatsNet.Server.Tests.Server;

public sealed class MqttHandlerTests
{
    [Fact] // T:2272
    public void MQTTStreamReplicasConfigReload_ShouldSucceed()
    {
        var err = JsApiErrors.NewJSStreamReplicasNotSupportedError();
        err.Code.ShouldBe(JsApiErrors.StreamReplicasNotSupported.Code);
        err.ErrCode.ShouldBe(JsApiErrors.StreamReplicasNotSupported.ErrCode);
        err.Description.ShouldBe("replicas > 1 not supported in non-clustered mode");
    }
}
