diff --git a/gateway/mw_http_signature_validation_test.go b/gateway/mw_http_signature_validation_test.go index cde181caadd..34e1730b2b4 100644 --- a/gateway/mw_http_signature_validation_test.go +++ b/gateway/mw_http_signature_validation_test.go @@ -233,7 +233,7 @@ func testPrepareRSAAuthSessionPass(tb testing.TB, eventWG *sync.WaitGroup, priva hashed := h.Sum(nil) signature, err := rsa.SignPKCS1v15(cryptoRand.Reader, privateKey, crypto.SHA256, hashed) - assert.NoError(t, err) + assert.NoError(tb, err) sigString := base64.StdEncoding.EncodeToString(signature)