Skip to content

Commit

Permalink
periodic: Close created Layers
Browse files Browse the repository at this point in the history
Closes: #1191 #1199

Signed-off-by: Hank Donnay <[email protected]>
  • Loading branch information
hdonnay committed Jan 9, 2024
1 parent 7185502 commit 2ff15e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/periodic/rpm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ func (doc hydraDoc) Run(dir string) func(*testing.T) {
if err := l.Init(ctx, &test.AnyDescription, n); err != nil {
t.Fatal(err)
}
defer l.Close()
l.Hash = ld // If you're reading this for an example of how to work with layers: don't do this.

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

0 comments on commit 2ff15e4

Please sign in to comment.