mirror of
https://github.com/moby/moby.git
synced 2026-01-11 10:41:43 +00:00
TestBuildForceRm: use assert to help debugging failures
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -1169,9 +1169,7 @@ func (s *DockerCLIBuildSuite) TestBuildForceRm(c *testing.T) {
|
||||
}
|
||||
|
||||
containerCountAfter := getContainerCount(c)
|
||||
if containerCountBefore != containerCountAfter {
|
||||
c.Fatalf("--force-rm shouldn't have left containers behind")
|
||||
}
|
||||
assert.Check(c, is.Equal(containerCountBefore, containerCountAfter), "--force-rm shouldn't have left containers behind")
|
||||
}
|
||||
|
||||
func (s *DockerCLIBuildSuite) TestBuildRm(c *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user