mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
clientv3/integration: use 'transport.IsClosedConnError'
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
56b111df0c
commit
6c2fb5105d
@ -58,7 +58,7 @@ func TestV3ClientMetrics(t *testing.T) {
|
||||
}
|
||||
|
||||
err = srv.Serve(ln)
|
||||
if err != nil && !strings.Contains(err.Error(), "use of closed network connection") {
|
||||
if err != nil && !transport.IsClosedConnError(err) {
|
||||
t.Fatalf("Err serving http requests: %v", err)
|
||||
}
|
||||
}()
|
||||
|
Loading…
x
Reference in New Issue
Block a user