Skip to content

Commit

Permalink
*: add test for enable new replica selector by default (#51793)
Browse files Browse the repository at this point in the history
close #51792
  • Loading branch information
crazycs520 authored Mar 18, 2024
1 parent 7056209 commit a07a820
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,7 @@ store-limit=0
ttl-refreshed-txn-size=8192
resolve-lock-lite-threshold = 16
copr-req-timeout = "120s"
enable-replica-selector-v2 = false
[tikv-client.async-commit]
keys-limit=123
total-key-size-limit=1024
Expand Down Expand Up @@ -804,6 +805,8 @@ max_connections = 200
require.Equal(t, uint(6000), conf.TiKVClient.RegionCacheTTL)
require.Equal(t, int64(0), conf.TiKVClient.StoreLimit)
require.Equal(t, int64(8192), conf.TiKVClient.TTLRefreshedTxnSize)
require.Equal(t, false, conf.TiKVClient.EnableReplicaSelectorV2)
require.Equal(t, true, defaultConf.TiKVClient.EnableReplicaSelectorV2)
require.Equal(t, uint(1000), conf.TokenLimit)
require.True(t, conf.EnableTableLock)
require.Equal(t, uint64(5), conf.DelayCleanTableLock)
Expand Down

0 comments on commit a07a820

Please sign in to comment.