refactor: extract NATS.Server.Clustering.Tests project
Move 29 clustering/routing test files from NATS.Server.Tests to a dedicated NATS.Server.Clustering.Tests project. Update namespaces, replace private GetFreePort/ReadUntilAsync helpers with TestUtilities calls, and extract TestServerFactory/ClusterTestServer to TestUtilities to fix cross-project reference from JetStreamStartupTests.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
namespace NATS.Server.Clustering.Tests;
|
||||
|
||||
public class RouteWireSubscriptionProtocolTests
|
||||
{
|
||||
[Fact]
|
||||
public async Task RSplus_RSminus_frames_propagate_remote_interest_over_socket()
|
||||
{
|
||||
await using var fx = await RouteFixture.StartTwoNodeClusterAsync();
|
||||
|
||||
await fx.SendRouteSubFrameAsync("foo.*");
|
||||
(await fx.ServerAHasRemoteInterestAsync("foo.bar")).ShouldBeTrue();
|
||||
|
||||
await fx.SendRouteUnsubFrameAsync("foo.*");
|
||||
(await fx.ServerAHasRemoteInterestAsync("foo.bar", expected: false)).ShouldBeFalse();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user