diff --git a/packager/signer/signer_test.go b/packager/signer/signer_test.go index db5274e90..cd5c45b14 100644 --- a/packager/signer/signer_test.go +++ b/packager/signer/signer_test.go @@ -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("" + veryLongString) this.fakeHandler = func(resp http.ResponseWriter, req *http.Request) {