Skip to content

Commit

Permalink
test: increate timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
crepererum committed Jan 14, 2022
1 parent 65161d6 commit 1948b1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/producer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async fn test_batch_producer() {

let partition_client = Arc::new(client.partition_client(&topic, 0).await.unwrap());
let producer = BatchProducerBuilder::new(partition_client)
.with_linger(Duration::from_secs(2))
.with_linger(Duration::from_secs(3))
.build(RecordAggregator::new(record.approximate_size() * 2 + 1));

let a = producer.produce(record.clone()).fuse();
Expand All @@ -48,7 +48,7 @@ async fn test_batch_producer() {
r = a => r.unwrap(),
r = b => r.unwrap(),
_ = c => panic!("c finished!"),
_ = tokio::time::sleep(Duration::from_millis(1_000)).fuse() => break
_ = tokio::time::sleep(Duration::from_millis(2_000)).fuse() => break
};
}

Expand Down

0 comments on commit 1948b1d

Please sign in to comment.