Skip to content

Commit

Permalink
home: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed Oct 31, 2022
1 parent bb51a74 commit bcc2569
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions internal/home/tls_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,9 @@ func TestValidateCertificates(t *testing.T) {
})

t.Run("valid", func(t *testing.T) {
const wantErrMsg = `certificate does not verify: x509: ` +
`“AdGuard Home” certificate is using a broken key size`

status := &tlsConfigStatus{}
err := validateCertificates(status, testCertChainData, testPrivateKeyData, "")
testutil.AssertErrorMsg(t, wantErrMsg, err)
assert.Error(t, err)

notBefore := time.Date(2019, 2, 27, 9, 24, 23, 0, time.UTC)
notAfter := time.Date(2046, 7, 14, 9, 24, 23, 0, time.UTC)
Expand Down

0 comments on commit bcc2569

Please sign in to comment.