mirror of https://github.com/docker/cli.git
why there are so many mistakes in our repo (up to /cmd)
Signed-off-by: Aaron.L.Xu <likexu@harmonycloud.cn>
This commit is contained in:
parent
d0602ae8d8
commit
d5e4c0d0be
|
@ -22,7 +22,7 @@ func TestContainerCreateError(t *testing.T) {
|
|||
t.Fatalf("expected a Server Error while testing StatusInternalServerError, got %v", err)
|
||||
}
|
||||
|
||||
// 404 doesn't automagitally means an unknown image
|
||||
// 404 doesn't automatically means an unknown image
|
||||
client = &Client{
|
||||
client: newMockClient(errorMock(http.StatusNotFound, "Server error")),
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ func TestImageTagError(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
// Note: this is not testing all the InvalidReference as it's the reponsability
|
||||
// Note: this is not testing all the InvalidReference as it's the responsibility
|
||||
// of distribution/reference package.
|
||||
func TestImageTagInvalidReference(t *testing.T) {
|
||||
client := &Client{
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"golang.org/x/net/context"
|
||||
)
|
||||
|
||||
// SwarmUnlock unlockes locked swarm.
|
||||
// SwarmUnlock unlocks locked swarm.
|
||||
func (cli *Client) SwarmUnlock(ctx context.Context, req swarm.UnlockRequest) error {
|
||||
serverResp, err := cli.post(ctx, "/swarm/unlock", nil, req, nil)
|
||||
ensureReaderClosed(serverResp)
|
||||
|
|
Loading…
Reference in New Issue