Skip to content

Commit

Permalink
Minor code and comments tweaks
Browse files Browse the repository at this point in the history
Using `defer` for the sake of being more idiomatic (and maybe slightly
more reliable); plus, using the proper doc comment standards.

Signed-off-by: Leandro Motta Barros <leandro@balena.io>
Change-type: patch
  • Loading branch information
lmbarros committed Jun 2, 2023
1 parent 19a8c64 commit 7dd5142
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration/image/delta_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ var deltaTestCases = []struct {
},
}

// TestDeltaSizes checks if the sizes of generated deltas have not increased. In
// TestDeltaSize checks if the sizes of generated deltas have not increased. In
// other words, this test is designed to catch regressions in the delta sizes.
//
// The expected sizes (wantSize) were defined empirically so that they match
Expand Down Expand Up @@ -615,8 +615,8 @@ func ttrQueryDeltaSizeAsserting(ctx context.Context, t *testing.T, client apicli

tarRC, err := client.ImageSave(ctx, []string{ttrImageName(image)})
assert.Assert(t, err)
defer tarRC.Close()
size := deltaSizeFromTar(t, tarRC)
tarRC.Close()
return size
}

Expand Down

0 comments on commit 7dd5142

Please sign in to comment.