Clean up in TestNegotiateAPIVersionEmpty

Signed-off-by: John Stephens <johnstep@docker.com>
This commit is contained in:
John Stephens 2018-06-07 19:58:28 -07:00
parent f11f249588
commit b801361064
No known key found for this signature in database
GPG Key ID: 240549B2101E94D4
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ func TestNewEnvClientSetsDefaultVersion(t *testing.T) {
// TestNegotiateAPIVersionEmpty asserts that client.Client can
// negotiate a compatible APIVersion when omitted
func TestNegotiateAPIVersionEmpty(t *testing.T) {
defer env.PatchAll(t, map[string]string{"DOCKER_API_VERSION": ""})
defer env.PatchAll(t, map[string]string{"DOCKER_API_VERSION": ""})()
client, err := NewEnvClient()
assert.NilError(t, err)