Skip to content

Commit

Permalink
fix batch consumer test timeout interruption (#36246)
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 3332f5e1405eba5397bfcc93174b0415f2220703
  • Loading branch information
leonbur authored and wix-oss committed Sep 8, 2023
1 parent 54a1d9b commit 802276c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ class BatchedConsumerIT extends BaseTestWithSharedEnv[Env, TestResources] {
) *>
barrier
.offer(())
.interruptible
// we can't block here, otherwise rebalance won't happen - so we just fail
.timeoutFail(new RuntimeException("queue full"))(1.second)
.tapError(_ => ZIO.succeed(println(s"[$id] timed out waiting on barrier")))
Expand Down

0 comments on commit 802276c

Please sign in to comment.