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

Unified Diff: appengine/cmd/dm/mutate/ensure_attempt_test.go

Issue 1537883002: Initial distributor implementation (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: fix imports and make dummy.go a real file Created 4 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
« no previous file with comments | « appengine/cmd/dm/mutate/ensure_attempt.go ('k') | appengine/cmd/dm/mutate/ensure_quest_attempts.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/cmd/dm/mutate/ensure_attempt_test.go
diff --git a/appengine/cmd/dm/mutate/ensure_attempt_test.go b/appengine/cmd/dm/mutate/ensure_attempt_test.go
index 9dd4cae2350dca190bd36397c299ecc0774011c2..5fe16360ce03903be8449b2cc940009e42e19eb4 100644
--- a/appengine/cmd/dm/mutate/ensure_attempt_test.go
+++ b/appengine/cmd/dm/mutate/ensure_attempt_test.go
@@ -36,14 +36,14 @@ func TestEnsureAttempt(t *testing.T) {
muts, err := ea.RollForward(c)
So(err, ShouldBeNil)
- So(muts, ShouldBeEmpty)
+ So(muts, ShouldHaveLength, 1)
ds := datastore.Get(c)
So(ds.Get(a), ShouldEqual, nil)
- So(a.State, ShouldEqual, dm.Attempt_NEEDS_EXECUTION)
+ So(a.State, ShouldEqual, dm.Attempt_SCHEDULING)
Convey("replaying the mutation after the state has evolved is a noop", func() {
- a.State.MustEvolve(dm.Attempt_EXECUTING)
+ So(a.ModifyState(c, dm.Attempt_EXECUTING), ShouldBeNil)
So(ds.Put(a), ShouldBeNil)
muts, err = ea.RollForward(c)
« no previous file with comments | « appengine/cmd/dm/mutate/ensure_attempt.go ('k') | appengine/cmd/dm/mutate/ensure_quest_attempts.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698