mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #16929 from ZhouJianMS/fix-sleep-failpoint
Exclude sleep failpoint from 1 node scenario
This commit is contained in:
commit
30ed399835
@ -185,6 +185,9 @@ func (f killAndGofailSleep) Name() string {
|
||||
}
|
||||
|
||||
func (f killAndGofailSleep) Available(config e2e.EtcdProcessClusterConfig, member e2e.EtcdProcess) bool {
|
||||
if config.ClusterSize == 1 {
|
||||
return false
|
||||
}
|
||||
memberFailpoints := member.Failpoints()
|
||||
if memberFailpoints == nil {
|
||||
return false
|
||||
@ -220,6 +223,9 @@ func (f gofailSleepAndDeactivate) Name() string {
|
||||
}
|
||||
|
||||
func (f gofailSleepAndDeactivate) Available(config e2e.EtcdProcessClusterConfig, member e2e.EtcdProcess) bool {
|
||||
if config.ClusterSize == 1 {
|
||||
return false
|
||||
}
|
||||
memberFailpoints := member.Failpoints()
|
||||
if memberFailpoints == nil {
|
||||
return false
|
||||
|
Loading…
x
Reference in New Issue
Block a user