Skip to content

Commit

Permalink
cfca: pkcs7 test, avoid random failure
Browse files Browse the repository at this point in the history
  • Loading branch information
emmansun authored Dec 13, 2024
1 parent 8e02380 commit ab670f8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cfca/pkcs7_sign_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,12 @@ func TestSignMessageAttach(t *testing.T) {
if err != nil {
t.Fatal(err)
}
lastByte := p7[len(p7)-1]
p7[len(p7)-1] = 0
p7[0] = 0x20
err = VerifyMessageAttach(p7)
if err == nil {
t.Fatalf("VerifyMessageAttach() error = %v, wantErr %v", err, true)
}
p7[len(p7)-1] = lastByte
p7[0] = 0x30
err = VerifyMessageAttach(p7)
if err != nil {
t.Fatal(err)
Expand Down

0 comments on commit ab670f8

Please sign in to comment.