Sfoglia il codice sorgente

Use 2 seconds instead of 2000 milliseconds

Signed-off-by: Daniel Nephin <dnephin@docker.com>
Daniel Nephin 8 anni fa
parent
commit
cbf2f4d281

+ 1 - 1
integration-cli/docker_cli_external_volume_driver_unix_test.go

@@ -426,7 +426,7 @@ func (s *DockerExternalVolumeSuite) TestExternalVolumeDriverRetryNotImmediatelyE
 
 
 	<-started
 	<-started
 	// wait for a retry to occur, then create spec to allow plugin to register
 	// wait for a retry to occur, then create spec to allow plugin to register
-	time.Sleep(2000 * time.Millisecond)
+	time.Sleep(2 * time.Second)
 	p := newVolumePlugin(c, driverName)
 	p := newVolumePlugin(c, driverName)
 	defer p.Close()
 	defer p.Close()