testKeySign: small fix (#206)

This commit is contained in:
Paweł Szałachowski 2021-04-01 09:53:30 -07:00 committed by GitHub
parent 9fc6c7504a
commit 611c6598b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -151,7 +151,7 @@ func testKeySign(t *testing.T, tpm *TPM) {
}
digest := []byte("12345678901234567890123456789012")
sig, err := signer.Sign(rand.Reader, digest, nil)
if !ok {
if err != nil {
t.Fatalf("signer.Sign() failed: %v", err)
}