Skip to content

Commit

Permalink
test: fix test_reject_proposal_during_region_merge (tikv#10627)
Browse files Browse the repository at this point in the history
Signed-off-by: gengliqi <[email protected]>

Co-authored-by: Ti Chi Robot <[email protected]>
  • Loading branch information
gengliqi and ti-chi-bot authored Jul 29, 2021
1 parent 7f2bb54 commit 9adb033
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/failpoints/cases/test_cmd_epoch_checker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ fn test_reject_proposal_during_region_merge() {
fail::remove(prepare_merge_fp);
assert!(
!merge_rx
.recv_timeout(Duration::from_secs(1))
.recv_timeout(Duration::from_secs(5))
.unwrap()
.get_header()
.has_error()
Expand Down Expand Up @@ -218,7 +218,7 @@ fn test_reject_proposal_during_region_merge() {

// Wait for region merge done.
fail::remove(commit_merge_fp);
pd_client.check_merged_timeout(source.get_id(), Duration::from_secs(1));
pd_client.check_merged_timeout(source.get_id(), Duration::from_secs(5));
// The write request fails due to epoch not match.
cb_receivers.assert_err();

Expand Down

0 comments on commit 9adb033

Please sign in to comment.