From 596facd1240036c91dd9579991aeb89f9f81f6eb Mon Sep 17 00:00:00 2001 From: Victor Vieux Date: Wed, 30 Oct 2013 13:18:48 -0700 Subject: [PATCH] fix typos --- runtime.go | 2 +- runtime_test.go | 2 +- server.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/runtime.go b/runtime.go index 0834dd668..d9f5b4159 100644 --- a/runtime.go +++ b/runtime.go @@ -326,7 +326,7 @@ func (runtime *Runtime) Create(config *Config, name string) (*Container, []strin if config.PortSpecs != nil { for _, p := range config.PortSpecs { if strings.Contains(p, ":") { - warnings = append(warnings, "The mapping to a public ports on your host has been deprecated. Use -p to publish the ports.") + warnings = append(warnings, "The mapping to public ports on your host has been deprecated. Use -p to publish the ports.") break } } diff --git a/runtime_test.go b/runtime_test.go index 21e229b4c..858481cb4 100644 --- a/runtime_test.go +++ b/runtime_test.go @@ -272,7 +272,7 @@ func TestRuntimeCreate(t *testing.T) { if err != nil { t.Fatal(err) } - if warnings == nil { + if warnings == nil || len(warnings) != 1 { t.Error("Expected a warning, got none") } } diff --git a/server.go b/server.go index f87b1e8ac..d9e5bc029 100644 --- a/server.go +++ b/server.go @@ -90,7 +90,7 @@ func (srv *Server) ContainerKill(name string, sig int) error { } else { // Otherwise, just send the requested signal if err := container.kill(sig); err != nil { - return fmt.Errorf("Cannot kil container %s: %s", name, err) + return fmt.Errorf("Cannot kill container %s: %s", name, err) } // FIXME: Add event for signals }