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>
| ... | ... |
@@ -540,7 +540,7 @@ func (s *DockerSuite) TestPsListContainersFilterCreated(c *testing.T) {
|
| 540 | 540 |
// filter containers by 'create' - note, no -a needed |
| 541 | 541 |
out, _ = dockerCmd(c, "ps", "-q", "-f", "status=created") |
| 542 | 542 |
containerOut := strings.TrimSpace(out) |
| 543 |
- assert.Assert(c, strings.HasPrefix(cID, containerOut)) |
|
| 543 |
+ assert.Assert(c, strings.Contains(containerOut, shortCID), "Should have seen '%s' in ps output:\n%s", shortCID, out) |
|
| 544 | 544 |
} |
| 545 | 545 |
|
| 546 | 546 |
// Test for GitHub issue #12595 |