MCPcopy
hub / github.com/etcd-io/etcd / TestLaunchDuplicateMemberShouldFail

Function TestLaunchDuplicateMemberShouldFail

tests/integration/member_test.go:67–81  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

65}
66
67func TestLaunchDuplicateMemberShouldFail(t *testing.T) {
68 integration.BeforeTest(t)
69 size := 3
70 c := integration.NewCluster(t, &integration.ClusterConfig{Size: size})
71 m := c.Members[0].Clone(t)
72 m.DataDir = t.TempDir()
73 defer c.Terminate(t)
74
75 if err := m.Launch(); err == nil {
76 t.Errorf("unexpect successful launch")
77 } else {
78 t.Logf("launch failed as expected: %v", err)
79 assert.Contains(t, err.Error(), "has already been bootstrapped")
80 }
81}
82
83func TestSnapshotAndRestartMember(t *testing.T) {
84 integration.BeforeTest(t)

Callers

nothing calls this directly

Calls 10

TerminateMethod · 0.95
BeforeTestMethod · 0.65
NewClusterMethod · 0.65
CloneMethod · 0.65
TempDirMethod · 0.65
ErrorfMethod · 0.65
LogfMethod · 0.65
ContainsMethod · 0.65
ErrorMethod · 0.65
LaunchMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…