Skip to content

Commit

Permalink
'
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelRybak committed Jun 24, 2020
1 parent 6093e87 commit bd3f8cd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packager/signer/signer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1041,8 +1041,7 @@ func (this *SignerSuite) TestIfCappedDontSignAndProxyFullDocument() {
Sign: &util.URLPattern{[]string{"https"}, "", this.httpsHost(), stringPtr("/amp/.*"), []string{}, stringPtr(""), false, 2000, nil}}}

const uncappedTailLength = 100
veryLongArray := [maxBodyLength + uncappedTailLength]string{}
veryLongString := strings.Join(veryLongArray[:], "a")
veryLongString := strings.Repeat("a", maxBodyLength+uncappedTailLength)
var customFakeBody = []byte("<html amp><body>" + veryLongString)

this.fakeHandler = func(resp http.ResponseWriter, req *http.Request) {
Expand Down

0 comments on commit bd3f8cd

Please sign in to comment.