Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion async-nats/tests/jetstream_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2586,6 +2586,7 @@ mod jetstream {
.await
.unwrap();

// Pull Consumer
{
let consumer = stream
.create_consumer(consumer::pull::Config {
Expand All @@ -2602,10 +2603,12 @@ mod jetstream {
assert_eq!(100, consumer.cached_info().config.sample_frequency);
}

// Push Consumer
{
let consumer = stream
.create_consumer(consumer::pull::Config {
.create_consumer(consumer::push::Config {
name: Some("SampledPushConsumer".into()),
deliver_subject: "DeliverSubject".into(),
description: Some(
"See below to check that Ack Sampling has been set to 100%!".to_string(),
),
Expand Down