etcd-tester: match ErrTimeout in stresser

Fix https://github.com/coreos/etcd/issues/5804.
This commit is contained in:
Gyu-Ho Lee 2016-06-28 19:20:28 -07:00
parent 8e825de35f
commit 15f2fd0726

View File

@ -106,7 +106,7 @@ func (s *stresser) Stress() error {
// new leader and start processing requests again.
shouldContinue = true
case etcdserver.ErrTimeoutDueToLeaderFail.Error():
case etcdserver.ErrTimeoutDueToLeaderFail.Error(), etcdserver.ErrTimeout.Error():
// This retries when request is triggered at the same time as
// leader failure and follower nodes receive time out errors
// from losing their leader. Followers should retry to connect