Skip to content

Commit

Permalink
ca_test: appease the linter
Browse files Browse the repository at this point in the history
  • Loading branch information
wgreenberg committed Feb 27, 2024
1 parent 392fa46 commit ffa3247
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ca/ca_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
)

var ocspId asn1.ObjectIdentifier = asn1.ObjectIdentifier{1, 3, 6, 1, 5, 5, 7, 1, 24}
var ocspValue []byte = []byte{0x30, 0x03, 0x02, 0x01, 0x05}
var ocspValue = []byte{0x30, 0x03, 0x02, 0x01, 0x05}

func makeCa() *CAImpl {
logger := log.New(os.Stdout, "Pebble ", log.LstdFlags)
Expand Down Expand Up @@ -127,7 +127,7 @@ func TestSettingOCSPMustStapleExtension(t *testing.T) {
numOCSPMustStapleExtensions := 0
for _, ext := range order.CertificateObject.Cert.Extensions {
if ext.Id.Equal(ocspId) && bytes.Equal(ext.Value, ocspValue) {
numOCSPMustStapleExtensions += 1
numOCSPMustStapleExtensions++
}
}
if numOCSPMustStapleExtensions != 1 {
Expand Down

0 comments on commit ffa3247

Please sign in to comment.