diff options
author | Sebastiaan van Stijn <github@gone.nl> | 2019-04-04 15:23:19 +0200 |
---|---|---|
committer | Sebastiaan van Stijn <github@gone.nl> | 2019-04-05 16:45:37 +0200 |
commit | 6345208b9b067f19f7792edcc675f59a617a3ca5 (patch) | |
tree | 6bc6b87e4d3a70732400d1a38914a554e3f785ae /integration-cli/docker_api_build_windows_test.go | |
parent | 86f2ac4a6b5b746c3309b57e7e04bdbdb70d46d7 (diff) | |
download | docker-6345208b9b067f19f7792edcc675f59a617a3ca5.tar.gz |
Replace some checkers and assertions with gotest.tools
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Diffstat (limited to 'integration-cli/docker_api_build_windows_test.go')
-rw-r--r-- | integration-cli/docker_api_build_windows_test.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/integration-cli/docker_api_build_windows_test.go b/integration-cli/docker_api_build_windows_test.go index a605c5be39..d100c8e297 100644 --- a/integration-cli/docker_api_build_windows_test.go +++ b/integration-cli/docker_api_build_windows_test.go @@ -5,7 +5,6 @@ package main import ( "net/http" - "github.com/docker/docker/integration-cli/checker" "github.com/docker/docker/internal/test/fakecontext" "github.com/docker/docker/internal/test/request" "github.com/go-check/check" @@ -30,8 +29,8 @@ func (s *DockerSuite) TestBuildWithRecycleBin(c *check.C) { request.RawContent(ctx.AsTarReader(c)), request.ContentType("application/x-tar")) - c.Assert(err, checker.IsNil) - c.Assert(res.StatusCode, checker.Equals, http.StatusOK) + assert.NilError(c, err) + assert.Equal(c, res.StatusCode, http.StatusOK) out, err := request.ReadBody(body) assert.NilError(c, err) |