From 59723b890319bf5441f1025eef515e3f7396d690 Mon Sep 17 00:00:00 2001 From: Jordan Keister Date: Wed, 15 Nov 2023 14:27:39 -0600 Subject: [PATCH] cleanup produced utest/dockerfile artifacts on test conclusion (#1168) Signed-off-by: Jordan Keister --- pkg/lib/indexer/indexer_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/lib/indexer/indexer_test.go b/pkg/lib/indexer/indexer_test.go index a5da2c972..9ced69e37 100644 --- a/pkg/lib/indexer/indexer_test.go +++ b/pkg/lib/indexer/indexer_test.go @@ -126,6 +126,7 @@ func TestBuildContext(t *testing.T) { // prevent regression - cleanup should never be nil t.Fatal("buildContext returned nil cleanup function") } + defer actualCleanup() if testCase.expectedOutDockerfile != nil && actualOutDockerfile != *testCase.expectedOutDockerfile { t.Fatalf("comparing outDockerfile: expected %v actual %v",