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

Unified Diff: common/auth/localauth/server_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: common/auth/localauth/server_test.go
diff --git a/common/auth/localauth/server_test.go b/common/auth/localauth/server_test.go
index 565735c91e12c64b5067b6576b2ecf32d1c4cefe..4d419b21cceb64bf3b74d193b396f5798d71db3b 100644
--- a/common/auth/localauth/server_test.go
+++ b/common/auth/localauth/server_test.go
@@ -21,6 +21,7 @@ import (
"github.com/luci/luci-go/common/clock"
"github.com/luci/luci-go/common/clock/testclock"
"github.com/luci/luci-go/common/errors"
+ "github.com/luci/luci-go/common/retry/transient"
"github.com/luci/luci-go/lucictx"
. "github.com/luci/luci-go/common/testing/assertions"
@@ -262,7 +263,7 @@ func TestProtocol(t *testing.T) {
})
Convey("Token generator returns transient error", func() {
- responses <- errors.WrapTransient(fmt.Errorf("transient"))
+ responses <- errors.New("transient", transient.Tag)
So(call(goodRequest()), ShouldEqual, `HTTP 500: Transient error - transient`)
})
})

Powered by Google App Engine
This is Rietveld 408576698