diff options
author | Sebastiaan van Stijn <github@gone.nl> | 2019-01-02 14:16:25 +0100 |
---|---|---|
committer | Sebastiaan van Stijn <github@gone.nl> | 2019-01-03 11:53:41 +0100 |
commit | 0de62d9bbcb92e9b7c73ee4cdef51c2229878e05 (patch) | |
tree | 52f86a384f347d46fa5643ce2667d293ba8beae6 /integration/image/commit_test.go | |
parent | 4d88a95d6730383624570f8730aa203a56caadc3 (diff) | |
download | docker-0de62d9bbcb92e9b7c73ee4cdef51c2229878e05.tar.gz |
Integration: use testenv.APIClient()
A client is already created in testenv.New(), so we can just
as well use that one, instead of creating a new client.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Diffstat (limited to 'integration/image/commit_test.go')
-rw-r--r-- | integration/image/commit_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/integration/image/commit_test.go b/integration/image/commit_test.go index ad3f89ec79..996f3716a9 100644 --- a/integration/image/commit_test.go +++ b/integration/image/commit_test.go @@ -7,7 +7,6 @@ import ( "github.com/docker/docker/api/types" "github.com/docker/docker/api/types/versions" "github.com/docker/docker/integration/internal/container" - "github.com/docker/docker/internal/test/request" "gotest.tools/assert" is "gotest.tools/assert/cmp" "gotest.tools/skip" @@ -17,7 +16,7 @@ func TestCommitInheritsEnv(t *testing.T) { skip.If(t, versions.LessThan(testEnv.DaemonAPIVersion(), "1.36"), "broken in earlier versions") skip.If(t, testEnv.DaemonInfo.OSType == "windows", "FIXME") defer setupTest(t)() - client := request.NewAPIClient(t) + client := testEnv.APIClient() ctx := context.Background() cID1 := container.Create(t, ctx, client) |