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

Unified Diff: dm/appengine/mutate/schedule_execution_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: dm/appengine/mutate/schedule_execution_test.go
diff --git a/dm/appengine/mutate/schedule_execution_test.go b/dm/appengine/mutate/schedule_execution_test.go
index eebfb0263bae3a8ef79a3e7fd40d7b86c0db5c70..ce019322a58a0288129b3ff8a8e847b6f88e6215 100644
--- a/dm/appengine/mutate/schedule_execution_test.go
+++ b/dm/appengine/mutate/schedule_execution_test.go
@@ -12,6 +12,7 @@ import (
ds "github.com/luci/gae/service/datastore"
"github.com/luci/luci-go/common/errors"
"github.com/luci/luci-go/common/proto/google"
+ "github.com/luci/luci-go/common/retry/transient"
"github.com/luci/luci-go/dm/api/service/v1"
"github.com/luci/luci-go/dm/appengine/distributor/fake"
"github.com/luci/luci-go/dm/appengine/model"
@@ -71,7 +72,7 @@ func TestScheduleExecution(t *testing.T) {
})
Convey("transient", func() {
- dist.RunError = errors.WrapTransient(errors.New("transient failure"))
+ dist.RunError = errors.New("transient failure", transient.Tag)
muts, err := se.RollForward(c)
So(err, ShouldErrLike, "transient")

Powered by Google App Engine
This is Rietveld 408576698