Browse Source

functional/rpcpb: rename "SnapshotCount"

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Gyuho Lee 7 years ago
parent
commit
5235fc2106
2 changed files with 2 additions and 2 deletions
  1. 1 1
      functional/rpcpb/etcd_config.go
  2. 1 1
      functional/rpcpb/etcd_config_test.go

+ 1 - 1
functional/rpcpb/etcd_config.go

@@ -160,7 +160,7 @@ func (e *Etcd) EmbedConfig() (cfg *embed.Config, err error) {
 	cfg.ClusterState = e.InitialClusterState
 	cfg.ClusterState = e.InitialClusterState
 	cfg.InitialClusterToken = e.InitialClusterToken
 	cfg.InitialClusterToken = e.InitialClusterToken
 
 
-	cfg.SnapCount = uint64(e.SnapshotCount)
+	cfg.SnapshotCount = uint64(e.SnapshotCount)
 	cfg.QuotaBackendBytes = e.QuotaBackendBytes
 	cfg.QuotaBackendBytes = e.QuotaBackendBytes
 
 
 	cfg.PreVote = e.PreVote
 	cfg.PreVote = e.PreVote

+ 1 - 1
functional/rpcpb/etcd_config_test.go

@@ -128,7 +128,7 @@ func TestEtcd(t *testing.T) {
 	expc.InitialCluster = "s1=https://127.0.0.1:13800,s2=https://127.0.0.1:23800,s3=https://127.0.0.1:33800"
 	expc.InitialCluster = "s1=https://127.0.0.1:13800,s2=https://127.0.0.1:23800,s3=https://127.0.0.1:33800"
 	expc.ClusterState = "new"
 	expc.ClusterState = "new"
 	expc.InitialClusterToken = "tkn"
 	expc.InitialClusterToken = "tkn"
-	expc.SnapCount = 10000
+	expc.SnapshotCount = 10000
 	expc.QuotaBackendBytes = 10740000000
 	expc.QuotaBackendBytes = 10740000000
 	expc.PreVote = true
 	expc.PreVote = true
 	expc.ExperimentalInitialCorruptCheck = true
 	expc.ExperimentalInitialCorruptCheck = true