Skip to content

Commit 1adada4

Browse files
committed
Change skip condition
1 parent 1fcf5b0 commit 1adada4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

cpp/tests/streaming/test_read_parquet.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,9 @@ INSTANTIATE_TEST_SUITE_P(
114114
);
115115

116116
TEST_P(StreamingReadParquetThrottle, NonPositiveThrottleThrows) {
117-
if (GlobalEnvironment->comm_->nranks() > 1) {
118-
// Test is independent of size of communicator, so don't bother if we
119-
// have more than one rank.
120-
GTEST_SKIP();
117+
if (GlobalEnvironment->comm_->rank() != 0) {
118+
// Test is independent of size of communicator.
119+
GTEST_SKIP() << "Test only runs on rank zero";
121120
}
122121
int max_tickets = GetParam();
123122
auto source = get_source_info();

0 commit comments

Comments
 (0)