Skip to content

Commit

Permalink
cleanup produced utest/dockerfile artifacts on test conclusion (#1168)
Browse files Browse the repository at this point in the history
Signed-off-by: Jordan Keister <jordan@nimblewidget.com>
Upstream-repository: operator-registry
Upstream-commit: 59723b890319bf5441f1025eef515e3f7396d690
  • Loading branch information
grokspawn authored and ci-robot committed Nov 15, 2023
1 parent de324dc commit 057d3c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions staging/operator-registry/pkg/lib/indexer/indexer_test.go
Expand Up @@ -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",
Expand Down

0 comments on commit 057d3c3

Please sign in to comment.