Skip to content

Commit

Permalink
Merge pull request #8796 from gyuho/aaa
Browse files Browse the repository at this point in the history
clientv3/integration: match more errors in put retries
  • Loading branch information
gyuho authored Oct 31, 2017
2 parents 4e2ef67 + 0ca8f42 commit 791370b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clientv3/integration/server_shutdown_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 791370b

Please sign in to comment.