Skip to content

Commit 2ff15e4

Browse files
committed
periodic: Close created Layers
Closes: #1191 #1199 Signed-off-by: Hank Donnay <[email protected]>
1 parent 7185502 commit 2ff15e4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/periodic/rpm_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ func (doc hydraDoc) Run(dir string) func(*testing.T) {
235235
if err := l.Init(ctx, &test.AnyDescription, n); err != nil {
236236
t.Fatal(err)
237237
}
238+
defer l.Close()
238239
l.Hash = ld // If you're reading this for an example of how to work with layers: don't do this.
239240

240241
pkgs, err := s.Scan(ctx, &l)

0 commit comments

Comments
 (0)