Fix spelling of 'existent'

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
This commit is contained in:
Bryan Boreham 2015-11-25 13:45:37 +00:00
parent 9cbfa7b00b
commit 899caaca9c
3 changed files with 5 additions and 5 deletions

View File

@ -37,7 +37,7 @@ func (s *DockerSuite) TestVolumeCliInspect(c *check.C) {
c.Assert( c.Assert(
exec.Command(dockerBinary, "volume", "inspect", "doesntexist").Run(), exec.Command(dockerBinary, "volume", "inspect", "doesntexist").Run(),
check.Not(check.IsNil), check.Not(check.IsNil),
check.Commentf("volume inspect should error on non-existant volume"), check.Commentf("volume inspect should error on non-existent volume"),
) )
out, _ := dockerCmd(c, "volume", "create") out, _ := dockerCmd(c, "volume", "create")
@ -144,7 +144,7 @@ func (s *DockerSuite) TestVolumeCliRm(c *check.C) {
c.Assert( c.Assert(
exec.Command("volume", "rm", "doesntexist").Run(), exec.Command("volume", "rm", "doesntexist").Run(),
check.Not(check.IsNil), check.Not(check.IsNil),
check.Commentf("volume rm should fail with non-existant volume"), check.Commentf("volume rm should fail with non-existent volume"),
) )
} }

View File

@ -14,10 +14,10 @@ func TestPollerAddRemove(t *testing.T) {
w := NewPollingWatcher() w := NewPollingWatcher()
if err := w.Add("no-such-file"); err == nil { if err := w.Add("no-such-file"); err == nil {
t.Fatal("should have gotten error when adding a non-existant file") t.Fatal("should have gotten error when adding a non-existent file")
} }
if err := w.Remove("no-such-file"); err == nil { if err := w.Remove("no-such-file"); err == nil {
t.Fatal("should have gotten error when removing non-existant watch") t.Fatal("should have gotten error when removing non-existent watch")
} }
f, err := ioutil.TempFile("", "asdf") f, err := ioutil.TempFile("", "asdf")

View File

@ -66,7 +66,7 @@ func (m *MountPoint) Setup() (string, error) {
return "", err return "", err
} }
if runtime.GOOS != "windows" { // Windows does not have deprecation issues here if runtime.GOOS != "windows" { // Windows does not have deprecation issues here
logrus.Warnf("Auto-creating non-existant volume host path %s, this is deprecated and will be removed soon", m.Source) logrus.Warnf("Auto-creating non-existent volume host path %s, this is deprecated and will be removed soon", m.Source)
if err := system.MkdirAll(m.Source, 0755); err != nil { if err := system.MkdirAll(m.Source, 0755); err != nil {
return "", err return "", err
} }