Merge pull request #37236 from johnstep/fix-client-test-env-cleanup
Clean up in TestNegotiateAPIVersionEmpty Upstream-commit: 67f26c79d94ded25f0a2abcc0d631a94714af5e0 Component: engine
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user