mirror of
				https://github.com/moby/moby.git
				synced 2022-11-09 12:21:53 -05:00 
			
		
		
		
	Pass TestPsListContainersFilterCreated if other created containers exist
The test was dependent on its container being _first_ in the response, but anywhere on the line should be fine. Signed-off-by: Paul "TBBle" Hampson <Paul.Hampson@Pobox.com>
This commit is contained in:
		
							parent
							
								
									31e1fec950
								
							
						
					
					
						commit
						064650dd09
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -540,7 +540,7 @@ func (s *DockerSuite) TestPsListContainersFilterCreated(c *testing.T) {
 | 
			
		|||
	// filter containers by 'create' - note, no -a needed
 | 
			
		||||
	out, _ = dockerCmd(c, "ps", "-q", "-f", "status=created")
 | 
			
		||||
	containerOut := strings.TrimSpace(out)
 | 
			
		||||
	assert.Assert(c, strings.HasPrefix(cID, containerOut))
 | 
			
		||||
	assert.Assert(c, strings.Contains(containerOut, shortCID), "Should have seen '%s' in ps output:\n%s", shortCID, out)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Test for GitHub issue #12595
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue