Skip to content

Commit 59723b8

Browse files
authored
cleanup produced utest/dockerfile artifacts on test conclusion (#1168)
Signed-off-by: Jordan Keister <[email protected]>
1 parent 1554be3 commit 59723b8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/lib/indexer/indexer_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ func TestBuildContext(t *testing.T) {
126126
// prevent regression - cleanup should never be nil
127127
t.Fatal("buildContext returned nil cleanup function")
128128
}
129+
defer actualCleanup()
129130

130131
if testCase.expectedOutDockerfile != nil && actualOutDockerfile != *testCase.expectedOutDockerfile {
131132
t.Fatalf("comparing outDockerfile: expected %v actual %v",

0 commit comments

Comments
 (0)