@@ -391,7 +391,7 @@ func deleteInterface(t *testing.T, ifName string) {
391391}
392392
393393func (s * DockerDaemonSuite ) TestDaemonUlimitDefaults (c * testing.T ) {
394- s .d .StartWithBusybox (testutil .GetContext (c ), c , "--default-ulimit" , "nofile=42:42 " , "--default-ulimit" , "nproc=1024:1024" )
394+ s .d .StartWithBusybox (testutil .GetContext (c ), c , "--default-ulimit" , "nofile=50:50 " , "--default-ulimit" , "nproc=1024:1024" )
395395
396396 out , err := s .d .Cmd ("run" , "--ulimit" , "nproc=2048" , "--name=test" , "busybox" , "/bin/sh" , "-c" , "echo $(ulimit -n); echo $(ulimit -u)" )
397397 if err != nil {
@@ -405,15 +405,15 @@ func (s *DockerDaemonSuite) TestDaemonUlimitDefaults(c *testing.T) {
405405 nofile := strings .TrimSpace (outArr [0 ])
406406 nproc := strings .TrimSpace (outArr [1 ])
407407
408- if nofile != "42 " {
409- c .Fatalf ("expected `ulimit -n` to be `42 `, got: %s" , nofile )
408+ if nofile != "50 " {
409+ c .Fatalf ("expected `ulimit -n` to be `50 `, got: %s" , nofile )
410410 }
411411 if nproc != "2048" {
412412 c .Fatalf ("expected `ulimit -u` to be 2048, got: %s" , nproc )
413413 }
414414
415415 // Now restart daemon with a new default
416- s .d .Restart (c , "--default-ulimit" , "nofile=43 " )
416+ s .d .Restart (c , "--default-ulimit" , "nofile=50 " )
417417
418418 out , err = s .d .Cmd ("start" , "-a" , "test" )
419419 if err != nil {
@@ -427,8 +427,8 @@ func (s *DockerDaemonSuite) TestDaemonUlimitDefaults(c *testing.T) {
427427 nofile = strings .TrimSpace (outArr [0 ])
428428 nproc = strings .TrimSpace (outArr [1 ])
429429
430- if nofile != "43 " {
431- c .Fatalf ("expected `ulimit -n` to be `43 `, got: %s" , nofile )
430+ if nofile != "50 " {
431+ c .Fatalf ("expected `ulimit -n` to be `50 `, got: %s" , nofile )
432432 }
433433 if nproc != "2048" {
434434 c .Fatalf ("expected `ulimit -u` to be 2048, got: %s" , nproc )
0 commit comments