@@ -132,12 +132,12 @@ func testBuild(t *testing.T, when spec.G, it spec.S) {
132132 })
133133
134134 it .After (func () {
135- defaultBuilderImage .Cleanup ()
136- fakeDefaultRunImage .Cleanup ()
137- fakeMirror1 .Cleanup ()
138- fakeMirror2 .Cleanup ()
135+ h . AssertNilE ( t , defaultBuilderImage .Cleanup () )
136+ h . AssertNilE ( t , fakeDefaultRunImage .Cleanup () )
137+ h . AssertNilE ( t , fakeMirror1 .Cleanup () )
138+ h . AssertNilE ( t , fakeMirror2 .Cleanup () )
139139 os .RemoveAll (tmpDir )
140- fakeLifecycleImage .Cleanup ()
140+ h . AssertNilE ( t , fakeLifecycleImage .Cleanup () )
141141 })
142142
143143 when ("#Build" , func () {
@@ -226,9 +226,9 @@ func testBuild(t *testing.T, when spec.G, it spec.S) {
226226 })
227227
228228 it .After (func () {
229- remoteRunImage .Cleanup ()
230- builderWithoutLifecycleImageOrCreator .Cleanup ()
231- h .AssertNil (t , builtImage .Cleanup ())
229+ h . AssertNilE ( t , remoteRunImage .Cleanup () )
230+ h . AssertNilE ( t , builderWithoutLifecycleImageOrCreator .Cleanup () )
231+ h .AssertNilE (t , builtImage .Cleanup ())
232232 })
233233
234234 it ("only prints app name and sha" , func () {
@@ -254,7 +254,7 @@ func testBuild(t *testing.T, when spec.G, it spec.S) {
254254 })
255255
256256 it .After (func () {
257- builtImage .Cleanup ()
257+ h . AssertNilE ( t , builtImage .Cleanup () )
258258 })
259259
260260 it ("only prints app name and sha" , func () {
@@ -462,8 +462,8 @@ func testBuild(t *testing.T, when spec.G, it spec.S) {
462462 })
463463
464464 it .After (func () {
465- customBuilderImage .Cleanup ()
466- fakeRunImage .Cleanup ()
465+ h . AssertNilE ( t , customBuilderImage .Cleanup () )
466+ h . AssertNilE ( t , fakeRunImage .Cleanup () )
467467 })
468468
469469 it ("it uses the provided builder" , func () {
@@ -489,7 +489,7 @@ func testBuild(t *testing.T, when spec.G, it spec.S) {
489489 })
490490
491491 it .After (func () {
492- fakeRunImage .Cleanup ()
492+ h . AssertNilE ( t , fakeRunImage .Cleanup () )
493493 })
494494
495495 when ("run image stack matches the builder stack" , func () {
@@ -588,8 +588,8 @@ func testBuild(t *testing.T, when spec.G, it spec.S) {
588588 })
589589
590590 it .After (func () {
591- fakeLocalMirror .Cleanup ()
592- fakeLocalMirror1 .Cleanup ()
591+ h . AssertNilE ( t , fakeLocalMirror .Cleanup () )
592+ h . AssertNilE ( t , fakeLocalMirror1 .Cleanup () )
593593 })
594594
595595 when ("Publish is true" , func () {
@@ -1147,7 +1147,7 @@ func testBuild(t *testing.T, when spec.G, it spec.S) {
11471147 })
11481148
11491149 it .After (func () {
1150- h .AssertNil (t , os .Remove (buildpackTgz ))
1150+ h .AssertNilE (t , os .Remove (buildpackTgz ))
11511151 })
11521152
11531153 it ("buildpacks are added to ephemeral builder" , func () {
@@ -1331,8 +1331,7 @@ func testBuild(t *testing.T, when spec.G, it spec.S) {
13311331
13321332 it .After (func () {
13331333 os .Unsetenv ("PACK_HOME" )
1334- err := os .RemoveAll (tmpDir )
1335- h .AssertNil (t , err )
1334+ h .AssertNil (t , os .RemoveAll (tmpDir ))
13361335 })
13371336
13381337 it ("all buildpacks are added to ephemeral builder" , func () {
@@ -1644,9 +1643,9 @@ func testBuild(t *testing.T, when spec.G, it spec.S) {
16441643 })
16451644
16461645 it .After (func () {
1647- h .AssertNil (t , os .Unsetenv ("HTTP_PROXY" ))
1648- h .AssertNil (t , os .Unsetenv ("HTTPS_PROXY" ))
1649- h .AssertNil (t , os .Unsetenv ("NO_PROXY" ))
1646+ h .AssertNilE (t , os .Unsetenv ("HTTP_PROXY" ))
1647+ h .AssertNilE (t , os .Unsetenv ("HTTPS_PROXY" ))
1648+ h .AssertNilE (t , os .Unsetenv ("NO_PROXY" ))
16501649 })
16511650
16521651 it ("defaults to the *_PROXY environment variables" , func () {
0 commit comments