mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #26402 from qudongfang/ensure_client_transport_be_closed
ensure transport.Client be closed
This commit is contained in:
commit
335a3c6149
2 changed files with 18 additions and 0 deletions
|
|
@ -162,6 +162,11 @@ func TestGetAPIPath(t *testing.T) {
|
|||
if g != cs.e {
|
||||
t.Fatalf("Expected %s, got %s", cs.e, g)
|
||||
}
|
||||
|
||||
err = c.Close()
|
||||
if nil != err {
|
||||
t.Fatalf("close client failed, error message: %s", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue