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

Unified Diff: go/src/infra/gae/libs/gae/memory/taskqueue_test.go

Issue 1234343006: Some miscellaneous fixes: (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 5 years, 5 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 | « go/src/infra/gae/libs/gae/memory/taskqueue_data.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: go/src/infra/gae/libs/gae/memory/taskqueue_test.go
diff --git a/go/src/infra/gae/libs/gae/memory/taskqueue_test.go b/go/src/infra/gae/libs/gae/memory/taskqueue_test.go
index 9d090b9f5db0ad1c442b8c23ff5409981cda0af6..310ffe778e30e31e1dfdb64bc3427796cc94868d 100644
--- a/go/src/infra/gae/libs/gae/memory/taskqueue_test.go
+++ b/go/src/infra/gae/libs/gae/memory/taskqueue_test.go
@@ -74,11 +74,11 @@ func TestTaskQueue(t *testing.T) {
})
})
- Convey("requires a URL", func() {
+ Convey("supplies a URL if it's missing", func() {
t.Path = ""
tr, err := tq.Add(t, "")
- So(err.Error(), ShouldContainSubstring, "INVALID_URL")
- So(tr, ShouldBeNil)
+ So(err, ShouldBeNil)
+ So(tr.Path, ShouldEqual, "/_ah/queue/default")
})
Convey("cannot add twice", func() {
« no previous file with comments | « go/src/infra/gae/libs/gae/memory/taskqueue_data.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698