Skip to content

Commit

Permalink
stabilize spec
Browse files Browse the repository at this point in the history
  • Loading branch information
mensfeld committed Sep 16, 2024
1 parent a686c7a commit be7da3a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/lib/waterdrop/producer/transactions_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,11 @@
producer.transaction do
handlers << producer.produce_async(topic: 'example_topic', payload: 'data')

sleep(0.1)

producer.transaction do
sleep(0.1)

handlers << producer.produce_async(topic: 'example_topic', payload: 'data')
raise(WaterDrop::AbortTransaction)
end
Expand Down

0 comments on commit be7da3a

Please sign in to comment.