Merge pull request #37236 from johnstep/fix-client-test-env-cleanup

Clean up in TestNegotiateAPIVersionEmpty
This commit is contained in:
Sebastiaan van Stijn 2018-06-08 13:06:53 -07:00 committed by GitHub
commit 67f26c79d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)