Index: appengine/logdog/coordinator/endpoints/logs/query_test.go |
diff --git a/appengine/logdog/coordinator/endpoints/logs/query_test.go b/appengine/logdog/coordinator/endpoints/logs/query_test.go |
index 06158f715fc55855eb64a4b5b1c536a25dda922a..f66f1297e3b5f1aeda7c67c0174400c5e7eb55ec 100644 |
--- a/appengine/logdog/coordinator/endpoints/logs/query_test.go |
+++ b/appengine/logdog/coordinator/endpoints/logs/query_test.go |
@@ -169,14 +169,14 @@ func TestQuery(t *testing.T) { |
req.Project = "does-not-exist" |
_, err := svr.Query(c, &req) |
- So(err, ShouldBeRPCNotFound) |
+ So(err, ShouldBeRPCPermissionDenied) |
}) |
- Convey(`An empty query to a project without access fails with NotFound.`, func() { |
+ Convey(`An empty query to a project without access fails with PermissionDenied.`, func() { |
req.Project = "proj-exclusive" |
_, err := svr.Query(c, &req) |
- So(err, ShouldBeRPCNotFound) |
+ So(err, ShouldBeRPCPermissionDenied) |
}) |
Convey(`An empty query will include purged streams if admin.`, func() { |