Add TooManyRPCRequestsError to TestWrapError
This commit is contained in:
parent
5d4fccabeb
commit
9ddc09c096
|
@ -6,10 +6,11 @@
|
||||||
package rpc
|
package rpc
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/letsencrypt/boulder/core"
|
|
||||||
"github.com/letsencrypt/boulder/test"
|
|
||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"github.com/letsencrypt/boulder/core"
|
||||||
|
"github.com/letsencrypt/boulder/test"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestWrapError(t *testing.T) {
|
func TestWrapError(t *testing.T) {
|
||||||
|
@ -24,6 +25,7 @@ func TestWrapError(t *testing.T) {
|
||||||
core.CertificateIssuanceError("foo"),
|
core.CertificateIssuanceError("foo"),
|
||||||
core.NoSuchRegistrationError("foo"),
|
core.NoSuchRegistrationError("foo"),
|
||||||
core.RateLimitedError("foo"),
|
core.RateLimitedError("foo"),
|
||||||
|
core.TooManyRPCRequestsError("foo"),
|
||||||
}
|
}
|
||||||
for _, c := range testCases {
|
for _, c := range testCases {
|
||||||
wrapped := wrapError(c)
|
wrapped := wrapError(c)
|
||||||
|
|
Loading…
Reference in New Issue