Merge pull request #13321 from patrocinio/main

Fix a few typos
This commit is contained in:
Piotr Tabor 2021-09-08 09:48:33 +02:00 committed by GitHub
commit af22382777
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 {