feat: route publishes to jetstream with puback
This commit is contained in:
14
tests/NATS.Server.Tests/JetStreamPublishTests.cs
Normal file
14
tests/NATS.Server.Tests/JetStreamPublishTests.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
namespace NATS.Server.Tests;
|
||||
|
||||
public class JetStreamPublishTests
|
||||
{
|
||||
[Fact]
|
||||
public async Task Publish_to_stream_subject_returns_puback()
|
||||
{
|
||||
await using var fixture = await JetStreamApiFixture.StartWithStreamAsync("ORDERS", "orders.*");
|
||||
var ack = await fixture.PublishAndGetAckAsync("orders.created", "{\"id\":1}");
|
||||
|
||||
ack.Stream.ShouldBe("ORDERS");
|
||||
ack.Seq.ShouldBe((ulong)1);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user