Skip to content

Commit

Permalink
fix(f24 p4): misleading error
Browse files Browse the repository at this point in the history
  • Loading branch information
unw9527 committed Dec 5, 2024
1 parent 1964231 commit 0ce1467
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/txn/txn_index_concurrent_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ TEST(TxnIndexTest, DISABLED_IndexConcurrentUpdateTest) { // NOLINT
if (add_delete_insert) {
StringVectorWriter data_writer;
BUSTUB_ENSURE(bustub->ExecuteSqlTxn(generate_select_sql(i), data_writer, txn), "cannot retrieve data");
BUSTUB_ENSURE(data_writer.values_.size() == 1, "more than 1 row fetched??");
BUSTUB_ENSURE(data_writer.values_.size() > 1, "more than one row fetched??");
BUSTUB_ENSURE(!data_writer.values_.empty(), "no row fetched??");
const auto b_val = std::stoi(data_writer.values_[0][0]);
BUSTUB_ENSURE(bustub->ExecuteSqlTxn(generate_delete_sql(i), data_writer, txn), "cannot delete data");
BUSTUB_ENSURE(bustub->ExecuteSqlTxn(generate_txn_insert_sql(b_val, i), data_writer, txn),
Expand Down

0 comments on commit 0ce1467

Please sign in to comment.