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 3, 2023
1 parent e57a8bd commit 00d10db
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 00d10db

Please sign in to comment.