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:
Aaron.L.Xu 2017-02-16 23:56:53 +08:00
parent d0602ae8d8
commit d5e4c0d0be
3 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ func TestContainerCreateError(t *testing.T) {
t.Fatalf("expected a Server Error while testing StatusInternalServerError, got %v", err) 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 = &Client{
client: newMockClient(errorMock(http.StatusNotFound, "Server error")), client: newMockClient(errorMock(http.StatusNotFound, "Server error")),
} }

View File

@ -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. // of distribution/reference package.
func TestImageTagInvalidReference(t *testing.T) { func TestImageTagInvalidReference(t *testing.T) {
client := &Client{ client := &Client{

View File

@ -5,7 +5,7 @@ import (
"golang.org/x/net/context" "golang.org/x/net/context"
) )
// SwarmUnlock unlockes locked swarm. // SwarmUnlock unlocks locked swarm.
func (cli *Client) SwarmUnlock(ctx context.Context, req swarm.UnlockRequest) error { func (cli *Client) SwarmUnlock(ctx context.Context, req swarm.UnlockRequest) error {
serverResp, err := cli.post(ctx, "/swarm/unlock", nil, req, nil) serverResp, err := cli.post(ctx, "/swarm/unlock", nil, req, nil)
ensureReaderClosed(serverResp) ensureReaderClosed(serverResp)