Skip to content

Commit

Permalink
sleep more for truncate
Browse files Browse the repository at this point in the history
  • Loading branch information
vagetablechicken committed Jun 27, 2024
1 parent ce93fd9 commit 774bc3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/sql_cmd_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1284,7 +1284,7 @@ TEST_P(DBSDKTest, Truncate) {
sr->ExecuteSQL(absl::StrCat("insert into ", table_name, " values ('", key, "', 11, ", ts, ");"), &status);
}
}
absl::SleepFor(absl::Seconds(5));
absl::SleepFor(absl::Seconds(8)); // sleep more to avoid truncate failed on partition offset mismatch

res = sr->ExecuteSQL(absl::StrCat("select * from ", table_name, ";"), &status);
ASSERT_EQ(res->Size(), 100);
Expand Down

0 comments on commit 774bc3e

Please sign in to comment.