mirror of
				https://github.com/moby/moby.git
				synced 2022-11-09 12:21:53 -05:00 
			
		
		
		
	Extend sleep/timeout for ngoroutine check
In cases where this is failing it's ok to have the test take extra time, but we don't want it to fail because of some race/performance differences between systems. So make the timeout go to 30s and double the sleep time in between checks so it's not pounding the daemon quite so fast. Originally I couldn't make this test fail (pre-change), but changed graphdrivers and saw a failure pretty quickly. This change seems to smooth that out. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
		
							parent
							
								
									1d57642906
								
							
						
					
					
						commit
						f207322c0a
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -432,7 +432,7 @@ func (s *DockerSuite) TestLogsFollowGoroutinesWithStdout(c *check.C) {
 | 
			
		|||
	c.Assert(cmd.Process.Kill(), check.IsNil)
 | 
			
		||||
 | 
			
		||||
	// NGoroutines is not updated right away, so we need to wait before failing
 | 
			
		||||
	t := time.After(5 * time.Second)
 | 
			
		||||
	t := time.After(30 * time.Second)
 | 
			
		||||
	for {
 | 
			
		||||
		select {
 | 
			
		||||
		case <-t:
 | 
			
		||||
| 
						 | 
				
			
			@ -441,7 +441,7 @@ func (s *DockerSuite) TestLogsFollowGoroutinesWithStdout(c *check.C) {
 | 
			
		|||
			if nroutines == getNGoroutines() {
 | 
			
		||||
				return
 | 
			
		||||
			}
 | 
			
		||||
			time.Sleep(100 * time.Millisecond)
 | 
			
		||||
			time.Sleep(200 * time.Millisecond)
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue