Skip to content

Commit

Permalink
some more changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Pritesh Bandi committed Jun 24, 2022
1 parent 23d57cd commit 92f5064
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 23 deletions.
4 changes: 1 addition & 3 deletions signer/jws_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"errors"
"github.com/notaryproject/notation-core-go/internal/testhelper"
"reflect"
"strings"
"testing"
)

Expand Down Expand Up @@ -59,8 +58,7 @@ func TestValidateIntegrity(t *testing.T) {
})

t.Run("with tempered payload returns error", func(t *testing.T) {
tempered := strings.Replace(TestValidSig, "mIn0", "ifQ==", 1)
env, _ := newJWSEnvelopeFromBytes([]byte(tempered))
env, _ := newJWSEnvelopeFromBytes([]byte(TestTemperedSig))
if err := env.validateIntegrity(); !(err != nil && errors.As(err, new(SignatureIntegrityError))) {
t.Errorf("Expected SignatureIntegrityError but found %q", reflect.TypeOf(err))
}
Expand Down
Loading

0 comments on commit 92f5064

Please sign in to comment.