Merge pull request #16929 from ZhouJianMS/fix-sleep-failpoint

Exclude sleep failpoint from 1 node scenario
This commit is contained in:
Marek Siarkowicz 2023-11-13 12:18:47 +01:00 committed by GitHub
commit 30ed399835
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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