Skip to content

Commit

Permalink
Fix Windows unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Zach Steindler <[email protected]>
  • Loading branch information
steiza committed Sep 11, 2024
1 parent ea1c77f commit a53ec25
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/cosign/cli/trustedroot/trustedroot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ func makeChain(t *testing.T, path string, size int) {
fd, err := os.Create(path)
checkErr(t, err)

defer fd.Close()

chainCert := &x509.Certificate{
SerialNumber: big.NewInt(1),
BasicConstraintsValid: true,
Expand Down

0 comments on commit a53ec25

Please sign in to comment.