Skip to content

Commit 652bd64

Browse files
committed
test: pin NATS endpoint in StorageType test
Addresses PR #10028 review: use NatsTestConstants.NatsClientOptions for both the connection manager options and the verification connection so the stream is created against and queried from the same pinned server endpoint.
1 parent 8b9b375 commit 652bd64

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎test/Extensions/Orleans.Streaming.NATS.Tests/NatsOptionsTests.cs‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,14 @@ public async Task StorageType_IsAppliedToJetStreamConfig(StreamConfigStorage sto
160160
NumReplicas = 1,
161161
PartitionCount = 2,
162162
ProducerCount = 1,
163-
StorageType = storageType
163+
StorageType = storageType,
164+
NatsClientOptions = NatsTestConstants.NatsClientOptions
164165
};
165166

166167
var connectionManager = new NatsConnectionManager(providerName, NullLoggerFactory.Instance, options);
167168
await connectionManager.Initialize();
168169

169-
await using var natsConnection = new NatsConnection();
170+
await using var natsConnection = new NatsConnection(NatsTestConstants.NatsClientOptions);
170171
var natsContext = new NatsJSContext(natsConnection);
171172
await natsConnection.ConnectAsync();
172173

0 commit comments

Comments
 (0)