Skip to content

Commit

Permalink
Make TestScanner.ScanOrderingFail assertions robust
Browse files Browse the repository at this point in the history
  • Loading branch information
EnricoMi committed Nov 20, 2024
1 parent 937695d commit b767e88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/arrow/dataset/scanner_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1036,8 +1036,8 @@ class TestScanner : public DatasetFixtureMixinWithParam<TestScannerParams> {
next = it.Next();
}
// expect iteration to stop on failure status
ASSERT_NOT_OK(next);
ASSERT_EQ(next.status().message(), "Data is not ordered");
EXPECT_EQ(next.status().code(), StatusCode::ExecutionError);
EXPECT_THAT(next.status().message(), testing::StartsWith("Data is not ordered"));
}
}
};
Expand Down

0 comments on commit b767e88

Please sign in to comment.