Files
natsnet/dotnet/tests/ZB.MOM.NatsNet.Server.Tests/Server/MqttHandlerTests.cs
2026-02-28 09:15:04 -05:00

20 lines
622 B
C#

// 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");
}
}