mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
commit
af22382777
@ -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()
|
||||
|
@ -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 {
|
||||
|
@ -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:]
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user