Преглед изворни кода

Fix spelling of 'existent'

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
Bryan Boreham пре 9 година
родитељ
комит
899caaca9c
3 измењених фајлова са 5 додато и 5 уклоњено
  1. 2 2
      integration-cli/docker_cli_volume_test.go
  2. 2 2
      pkg/filenotify/poller_test.go
  3. 1 1
      volume/volume.go

+ 2 - 2
integration-cli/docker_cli_volume_test.go

@@ -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"),
 	)
 	)
 }
 }
 
 

+ 2 - 2
pkg/filenotify/poller_test.go

@@ -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")

+ 1 - 1
volume/volume.go

@@ -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
 				}
 				}