From b801361064f708bf7f8adb93a18570c25de58219 Mon Sep 17 00:00:00 2001 From: John Stephens Date: Thu, 7 Jun 2018 19:58:28 -0700 Subject: [PATCH] Clean up in TestNegotiateAPIVersionEmpty Signed-off-by: John Stephens --- client/client_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/client_test.go b/client/client_test.go index fbf29d5639..403aa9f3f0 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -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)