Browse Source

clientv3/integration: remove "transport.ErrConnClosing" match

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Gyuho Lee 7 years ago
parent
commit
aeb418b815
1 changed files with 1 additions and 2 deletions
  1. 1 2
      clientv3/integration/server_shutdown_test.go

+ 1 - 2
clientv3/integration/server_shutdown_test.go

@@ -28,7 +28,6 @@ import (
 
 	"google.golang.org/grpc/codes"
 	"google.golang.org/grpc/status"
-	"google.golang.org/grpc/transport"
 )
 
 // TestBalancerUnderServerShutdownWatch expects that watch client
@@ -394,7 +393,7 @@ func isClientTimeout(err error) bool {
 		return false
 	}
 	code := ev.Code()
-	return code == codes.DeadlineExceeded || ev.Message() == transport.ErrConnClosing.Desc
+	return code == codes.DeadlineExceeded
 }
 
 func isCanceled(err error) bool {