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.
15 lines
374 B
C#
15 lines
374 B
C#
using NATS.Server.TestUtilities;
|
|
namespace NATS.Server.Tests;
|
|
|
|
public class JetStreamStartupTests
|
|
{
|
|
[Fact]
|
|
public async Task JetStream_enabled_server_starts_service()
|
|
{
|
|
await using var server = await TestServerFactory.CreateJetStreamEnabledAsync();
|
|
await server.WaitForReadyAsync();
|
|
|
|
server.Stats.JetStreamEnabled.ShouldBeTrue();
|
|
}
|
|
}
|