integration-cli: use c.Assert(err, check.IsNil) instead of if err != nil

Signed-off-by: Soshi Katsuta <katsuta_soshi@cyberagent.co.jp>
This commit is contained in:
Soshi Katsuta 2015-08-19 15:17:33 +09:00
parent d45fcc6c80
commit a41f431d11
1 changed files with 3 additions and 7 deletions

View File

@ -5461,13 +5461,9 @@ func (s *DockerSuite) TestBuildNullStringInAddCopyVolume(c *check.C) {
"nullfile": "test2",
},
)
if err != nil {
c.Fatal(err)
}
defer ctx.Close()
c.Assert(err, check.IsNil)
if _, err := buildImageFromContext(name, ctx, true); err != nil {
c.Fatal(err)
}
_, err = buildImageFromContext(name, ctx, true)
c.Assert(err, check.IsNil)
}