Skip to content

Commit

Permalink
Merge pull request redpanda-data#16478 from rockwotj/transform_loggin…
Browse files Browse the repository at this point in the history
…g_rpunit

transform/logging/test: deflake TransformLogManagerTest.LargeBuffer
  • Loading branch information
rockwotj authored Feb 5, 2024
2 parents b73d957 + faf99b6 commit 81715f2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/v/transform/logging/tests/log_manager_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,10 @@ TEST_F(TransformLogManagerTest, LargeBuffer) {
ss::maybe_yield().get();
}

// Drain the task queue so that we don't get races where this advance should
// trigger the flush, but there is currently a pending flush, which doesn't
// acuse the advance_clock to actually trigger a flush.
tests::drain_task_queue().get();
advance_clock();

EXPECT_EQ(logs().size(), N);
Expand Down

0 comments on commit 81715f2

Please sign in to comment.