Skip to content

Commit 54cfaa5

Browse files
committed
try fix unstable case
Signed-off-by: haojinming <jinming.hao@pingcap.com>
1 parent f7a82d1 commit 54cfaa5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/failpoint_tests.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ async fn txn_optimistic_heartbeat() -> Result<()> {
3434

3535
let mut txn_without_heartbeat = client
3636
.begin_with_options(
37-
TransactionOptions::new_optimistic().heartbeat_option(HeartbeatOption::NoHeartbeat),
37+
TransactionOptions::new_optimistic()
38+
.heartbeat_option(HeartbeatOption::NoHeartbeat)
39+
.drop_check(tikv_client::CheckLevel::Warn),
3840
)
3941
.await?;
4042
txn_without_heartbeat
@@ -58,7 +60,8 @@ async fn txn_optimistic_heartbeat() -> Result<()> {
5860
.begin_with_options(
5961
TransactionOptions::new_optimistic()
6062
.no_resolve_locks()
61-
.heartbeat_option(HeartbeatOption::NoHeartbeat),
63+
.heartbeat_option(HeartbeatOption::NoHeartbeat)
64+
.drop_check(tikv_client::CheckLevel::Warn),
6265
)
6366
.await?;
6467
t3.put(key1.clone(), "gee").await?;

0 commit comments

Comments
 (0)