Skip to content

Commit

Permalink
fix test failure due to ramdom order from scans
Browse files Browse the repository at this point in the history
  • Loading branch information
kuron99 committed Dec 18, 2024
1 parent 8844023 commit 8fdcdcd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/jogasaki/api/parallel_scan_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ TEST_F(parallel_scan_test, simple) {
auto tx = utils::create_transaction(*db_, true, false);
std::vector<mock::basic_record> result{};
execute_query("SELECT * FROM t", *tx, result);
std::sort(result.begin(), result.end());
ASSERT_EQ(3, result.size());
EXPECT_EQ((create_nullable_record<kind::int4>(100)), result[0]);
EXPECT_EQ((create_nullable_record<kind::int4>(200)), result[1]);
Expand All @@ -119,7 +120,10 @@ TEST_F(parallel_scan_test, negative_values) {
auto tx = utils::create_transaction(*db_, true, false);
std::vector<mock::basic_record> result{};
execute_query("SELECT * FROM t", *tx, result);
std::sort(result.begin(), result.end());
ASSERT_EQ(2, result.size());
EXPECT_EQ((create_nullable_record<kind::int4>(-200)), result[0]);
EXPECT_EQ((create_nullable_record<kind::int4>(-100)), result[1]);
}

TEST_F(parallel_scan_test, various_types) {
Expand Down

0 comments on commit 8fdcdcd

Please sign in to comment.