functional-tester/tester: fix "Desc" calls
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
@ -32,6 +32,13 @@ func (f *failureNoFailWithStress) Recover(clus *Cluster) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (f *failureNoFailWithStress) Desc() string {
|
||||
if f.desc.Desc() != "" {
|
||||
return f.desc.Desc()
|
||||
}
|
||||
return f.failureCase.String()
|
||||
}
|
||||
|
||||
func (f *failureNoFailWithStress) FailureCase() rpcpb.FailureCase {
|
||||
return f.failureCase
|
||||
}
|
||||
@ -70,6 +77,13 @@ func (f *failureNoFailWithNoStressForLiveness) Recover(clus *Cluster) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (f *failureNoFailWithNoStressForLiveness) Desc() string {
|
||||
if f.desc.Desc() != "" {
|
||||
return f.desc.Desc()
|
||||
}
|
||||
return f.failureCase.String()
|
||||
}
|
||||
|
||||
func (f *failureNoFailWithNoStressForLiveness) FailureCase() rpcpb.FailureCase {
|
||||
return f.failureCase
|
||||
}
|
||||
|
Reference in New Issue
Block a user