Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Unified Diff: server/auth/auth_test.go

Issue 2951393002: [errors] de-specialize Transient in favor of Tags. (Closed)
Patch Set: more refactor Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: server/auth/auth_test.go
diff --git a/server/auth/auth_test.go b/server/auth/auth_test.go
index 493edc75e137b89865ddf083ea6876ee771bb2f4..f195c175fdf7b72f90a724ea698de535af353bf1 100644
--- a/server/auth/auth_test.go
+++ b/server/auth/auth_test.go
@@ -21,6 +21,7 @@ import (
"github.com/luci/luci-go/server/auth/signing"
"github.com/luci/luci-go/common/errors"
+ "github.com/luci/luci-go/common/retry/transient"
. "github.com/luci/luci-go/common/testing/assertions"
. "github.com/smartystreets/goconvey/convey"
)
@@ -176,7 +177,7 @@ func TestMiddleware(t *testing.T) {
Convey("Transient error", t, func() {
rr := call(&Authenticator{
- Methods: []Method{fakeAuthMethod{err: errors.WrapTransient(errors.New("boo"))}},
+ Methods: []Method{fakeAuthMethod{err: errors.New("boo", transient.Tag)}},
})
So(rr.Code, ShouldEqual, 500)
So(rr.Body.String(), ShouldEqual, "Transient error during authentication\n")
« grpc/grpcutil/errors.go ('K') | « server/auth/auth.go ('k') | server/auth/delegation.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698