Add batch 32 JS cluster meta backlog test mappings
This commit is contained in:
@@ -9,6 +9,38 @@ namespace ZB.MOM.NatsNet.Server.Tests.ImplBacklog;
|
||||
|
||||
public sealed partial class ConcurrencyTests1
|
||||
{
|
||||
[Fact] // T:2390
|
||||
public void NoRaceJetStreamClusterLargeStreamInlineCatchup_ShouldSucceed()
|
||||
{
|
||||
var cluster = new JetStreamCluster
|
||||
{
|
||||
Streams = new Dictionary<string, Dictionary<string, StreamAssignment>>
|
||||
{
|
||||
["A"] = new Dictionary<string, StreamAssignment>
|
||||
{
|
||||
["BIG"] = new()
|
||||
{
|
||||
Config = new StreamConfig { Name = "BIG", Subjects = ["big.>"] },
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
var engine = new JetStreamEngine(new global::ZB.MOM.NatsNet.Server.JetStream { Cluster = cluster });
|
||||
engine.SubjectsOverlap("A", ["big.orders"]).ShouldBeTrue();
|
||||
}
|
||||
|
||||
[Fact] // T:2459
|
||||
public void NoRaceJetStreamClusterDifferentRTTInterestBasedStreamSetup_ShouldSucceed()
|
||||
{
|
||||
var updates = new RecoveryUpdates();
|
||||
var stream = new StreamAssignment { Client = new ClientInfo { Account = "A" }, Config = new StreamConfig { Name = "RTT" } };
|
||||
|
||||
updates.AddStream(stream);
|
||||
updates.UpdateStream(stream);
|
||||
updates.UpdateStreams.ShouldContainKey("A:RTT");
|
||||
}
|
||||
|
||||
[Fact] // T:2422
|
||||
public void NoRaceJetStreamConsumerFileStoreConcurrentDiskIO_ShouldSucceed()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user