clientv3/integration: match more errors in put retries
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>release-3.3
parent
4e2ef67f2b
commit
0ca8f420d4
|
@ -21,6 +21,7 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/coreos/etcd/clientv3"
|
||||
"github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes"
|
||||
"github.com/coreos/etcd/integration"
|
||||
"github.com/coreos/etcd/pkg/testutil"
|
||||
)
|
||||
|
@ -99,7 +100,7 @@ func TestBalancerUnderServerShutdownWatch(t *testing.T) {
|
|||
if err == nil {
|
||||
break
|
||||
}
|
||||
if err == context.DeadlineExceeded {
|
||||
if err == context.DeadlineExceeded || err == rpctypes.ErrTimeout || err == rpctypes.ErrTimeoutDueToLeaderFail {
|
||||
continue
|
||||
}
|
||||
t.Fatal(err)
|
||||
|
|
Loading…
Reference in New Issue