mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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>
This commit is contained in:
parent
4d88a95d67
commit
0de62d9bbc
36 changed files with 90 additions and 115 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue