Merge pull request #29527 from allencloud/change-minor-mistake

change minor mistake of spelling
This commit is contained in:
Brian Goff 2016-12-21 13:15:00 -05:00 committed by GitHub
commit fe406bb866
5 changed files with 5 additions and 5 deletions

View File

@ -244,7 +244,7 @@ func (e secretNotFoundError) Error() string {
return fmt.Sprintf("Error: no such secret: %s", e.name) return fmt.Sprintf("Error: no such secret: %s", e.name)
} }
// NoFound indicates that this error type is of NotFound // NotFound indicates that this error type is of NotFound
func (e secretNotFoundError) NotFound() bool { func (e secretNotFoundError) NotFound() bool {
return true return true
} }

View File

@ -31,7 +31,7 @@ func TestNodeInspectNodeNotFound(t *testing.T) {
_, _, err := client.NodeInspectWithRaw(context.Background(), "unknown") _, _, err := client.NodeInspectWithRaw(context.Background(), "unknown")
if err == nil || !IsErrNodeNotFound(err) { if err == nil || !IsErrNodeNotFound(err) {
t.Fatalf("expected an nodeNotFoundError error, got %v", err) t.Fatalf("expected a nodeNotFoundError error, got %v", err)
} }
} }

View File

@ -7,7 +7,7 @@ import (
"golang.org/x/net/context" "golang.org/x/net/context"
) )
// Ping pings the server and return the value of the "Docker-Experimental" & "API-Version" headers // Ping pings the server and returns the value of the "Docker-Experimental" & "API-Version" headers
func (cli *Client) Ping(ctx context.Context) (types.Ping, error) { func (cli *Client) Ping(ctx context.Context) (types.Ping, error) {
var ping types.Ping var ping types.Ping
req, err := cli.buildRequest("GET", fmt.Sprintf("%s/_ping", cli.basePath), nil, nil) req, err := cli.buildRequest("GET", fmt.Sprintf("%s/_ping", cli.basePath), nil, nil)

View File

@ -31,7 +31,7 @@ func TestSecretInspectSecretNotFound(t *testing.T) {
_, _, err := client.SecretInspectWithRaw(context.Background(), "unknown") _, _, err := client.SecretInspectWithRaw(context.Background(), "unknown")
if err == nil || !IsErrSecretNotFound(err) { if err == nil || !IsErrSecretNotFound(err) {
t.Fatalf("expected an secretNotFoundError error, got %v", err) t.Fatalf("expected a secretNotFoundError error, got %v", err)
} }
} }

View File

@ -31,7 +31,7 @@ func TestServiceInspectServiceNotFound(t *testing.T) {
_, _, err := client.ServiceInspectWithRaw(context.Background(), "unknown") _, _, err := client.ServiceInspectWithRaw(context.Background(), "unknown")
if err == nil || !IsErrServiceNotFound(err) { if err == nil || !IsErrServiceNotFound(err) {
t.Fatalf("expected an serviceNotFoundError error, got %v", err) t.Fatalf("expected a serviceNotFoundError error, got %v", err)
} }
} }