Skip to content

Commit b98589c

Browse files
author
Rafał Hibner
committed
Cleanup test
1 parent 208f61d commit b98589c

1 file changed

Lines changed: 3 additions & 15 deletions

File tree

cpp/src/arrow/acero/asof_join_node_test.cc

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1667,24 +1667,12 @@ TEST(AsofJoinTest, PauseProducingAsofJoinSource) {
16671667
arrow::io::internal::GetIOThreadPool()->WaitForIdle();
16681668
arrow::internal::GetCpuThreadPool()->WaitForIdle();
16691669

1670-
EXPECT_FALSE(is_l_paused());
1671-
EXPECT_FALSE(is_r_paused());
1672-
EXPECT_TRUE(backpressure_monitor->is_paused());
1673-
1674-
batch_producer_left.producer().Push(l_batches.batches[l_cnt++]);
1675-
arrow::internal::GetCpuThreadPool()->WaitForIdle();
1676-
batch_producer_right.producer().Push(r0_batches.batches[r_cnt++]);
1677-
arrow::internal::GetCpuThreadPool()->WaitForIdle();
1678-
1679-
EXPECT_FALSE(is_l_paused());
1680-
EXPECT_FALSE(is_r_paused());
1681-
EXPECT_TRUE(backpressure_monitor->is_paused());
1682-
16831670
// Fill up the inputs of the asof join node
1684-
for (uint32_t i = 1; i < thresholdOfBackpressureAsof; i++) {
1671+
for (uint32_t i = 0; i < thresholdOfBackpressureAsof; i++) {
16851672
SleepABit();
1686-
EXPECT_FALSE(is_l_paused()) << i;
1673+
EXPECT_FALSE(is_l_paused());
16871674
EXPECT_FALSE(is_r_paused());
1675+
EXPECT_TRUE(backpressure_monitor->is_paused());
16881676
batch_producer_left.producer().Push(l_batches.batches[l_cnt++]);
16891677
batch_producer_right.producer().Push(r0_batches.batches[r_cnt++]);
16901678
}

0 commit comments

Comments
 (0)