Fix a few typos

dependabot/go_modules/go.uber.org/atomic-1.10.0
Eduardo Patrocinio 2021-09-03 15:34:15 -04:00
parent a4a82cc982
commit 87f1dc7e40
4 changed files with 4 additions and 4 deletions

View File

@ -1874,7 +1874,7 @@ func (s *EtcdServer) apply(
return appliedt, appliedi, shouldStop
}
// applyEntryNormal apples an EntryNormal type raftpb request to the EtcdServer
// applyEntryNormal applies an EntryNormal type raftpb request to the EtcdServer
func (s *EtcdServer) applyEntryNormal(e *raftpb.Entry) {
shouldApplyV3 := membership.ApplyV2storeOnly
index := s.consistIndex.ConsistentIndex()

View File

@ -89,7 +89,7 @@ func newEmbedConfig(t *testing.T) *embed.Config {
// creates a snapshot file and returns the file path.
func createSnapshotFile(t *testing.T, cfg *embed.Config, kvs []kv) (version string, dbPath string) {
testutil.SkipTestIfShortMode(t,
"Snapshot creation tests are depending on embedded etcServer so are integration-level tests.")
"Snapshot creation tests are depending on embedded etcd server so are integration-level tests.")
srv, err := embed.StartEtcd(cfg)
if err != nil {

View File

@ -170,7 +170,7 @@ type kv struct {
// creates a snapshot file and returns the file path.
func createSnapshotFile(t *testing.T, kvs []kv) string {
testutil.SkipTestIfShortMode(t,
"Snapshot creation tests are depending on embedded etcServer so are integration-level tests.")
"Snapshot creation tests are depending on embedded etcd server so are integration-level tests.")
clusterN := 1
urls := newEmbedURLs(clusterN * 2)
cURLs, pURLs := urls[:clusterN], urls[clusterN:]

View File

@ -33,7 +33,7 @@ import (
func TestEtcdVersionFromWAL(t *testing.T) {
testutil.SkipTestIfShortMode(t,
"Wal creation tests are depending on embedded etcServer so are integration-level tests.")
"Wal creation tests are depending on embedded etcd server so are integration-level tests.")
cfg := NewEmbedConfig(t, "default")
srv, err := embed.StartEtcd(cfg)
if err != nil {