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

Unified Diff: appengine/config_service/projects_test.py

Issue 2931673003: config_service: fetch repos and metadata concurrently (Closed)
Patch Set: use ctx.memcache_[gs]et 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
« no previous file with comments | « appengine/config_service/projects.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/config_service/projects_test.py
diff --git a/appengine/config_service/projects_test.py b/appengine/config_service/projects_test.py
index 4163fed5f373fa3d4e5ca61657f25d3d51ee2d76..44208caff41da5570a08856b2c03fbb54b0fe2a8 100755
--- a/appengine/config_service/projects_test.py
+++ b/appengine/config_service/projects_test.py
@@ -75,14 +75,16 @@ class ProjectsTestCase(test_case.TestCase):
self.assertEqual(projects.get_refs(['chromium']), {'chromium': None})
def test_repo_info(self):
- self.assertEqual(projects.get_repos(['x']), {'x': (None, None)})
+ self.assertEqual(
+ projects.get_repos_async(['x']).get_result(),
+ {'x': (None, None)})
projects.update_import_info(
'x', projects.RepositoryType.GITILES, 'http://localhost/x')
# Second time for coverage.
projects.update_import_info(
'x', projects.RepositoryType.GITILES, 'http://localhost/x')
self.assertEqual(
- projects.get_repos(['x']),
+ projects.get_repos_async(['x']).get_result(),
{'x': (projects.RepositoryType.GITILES, 'http://localhost/x')})
# Change it
« no previous file with comments | « appengine/config_service/projects.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698