Browse Source

remove TestAllocateTCPPortLocalhost faillure in tests

Docker-DCO-1.1-Signed-off-by: Victor Vieux <victor.vieux@docker.com> (github: vieux)
Victor Vieux 11 years ago
parent
commit
8e619e13ca
1 changed files with 1 additions and 1 deletions
  1. 1 1
      server.go

+ 1 - 1
server.go

@@ -1742,7 +1742,7 @@ func (srv *Server) ContainerCreate(job *engine.Job) engine.Status {
 		return engine.StatusErr
 	}
 	config := ContainerConfigFromJob(job)
-	if config.Memory != 0 && config.Memory < 524288 {
+	if config.Memory > 0 && config.Memory < 524288 {
 		job.Errorf("Minimum memory limit allowed is 512k")
 		return engine.StatusErr
 	}