File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,17 @@ const REGION_SPLIT_TIME_LIMIT: Duration = Duration::from_secs(15);
24
24
25
25
// Delete all entries in TiKV to leave a clean space for following tests.
26
26
pub async fn clear_tikv ( ) {
27
+ // DEFAULT_REGION_BACKOFF is not long enough for CI environment. So set a longer backoff.
28
+ let backoff = tikv_client:: Backoff :: no_jitter_backoff ( 100 , 30000 , 20 ) ;
27
29
let raw_client =
28
30
RawClient :: new_with_config ( pd_addrs ( ) , Config :: default ( ) . with_default_keyspace ( ) )
29
31
. await
30
32
. unwrap ( ) ;
31
- raw_client. delete_range ( ..) . await . unwrap ( ) ;
33
+ raw_client
34
+ . with_backoff ( backoff)
35
+ . delete_range ( ..)
36
+ . await
37
+ . unwrap ( ) ;
32
38
33
39
let txn_client =
34
40
TransactionClient :: new_with_config ( pd_addrs ( ) , Config :: default ( ) . with_default_keyspace ( ) )
You can’t perform that action at this time.
0 commit comments