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

Unified Diff: appengine/swarming/server/task_scheduler_test.py

Issue 1926443003: swarming: read configs from luci-config (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@master
Patch Set: changed logging levels Created 4 years, 8 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/swarming/server/config.py ('k') | appengine/swarming/templates/restricted_config.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/swarming/server/task_scheduler_test.py
diff --git a/appengine/swarming/server/task_scheduler_test.py b/appengine/swarming/server/task_scheduler_test.py
index 429a221a4d0df460d78c55dca8bb88528a54022c..b975205553b575f57d91d1de89bb79e52d74479b 100755
--- a/appengine/swarming/server/task_scheduler_test.py
+++ b/appengine/swarming/server/task_scheduler_test.py
@@ -402,7 +402,7 @@ class TaskSchedulerApiTest(test_case.TestCase):
self.mock(random, 'getrandbits', lambda _: 0x88)
cfg = config.settings()
cfg.reusable_task_age_secs = 10
- cfg.store()
+ self.mock(config, 'settings', lambda: cfg)
# First task is idempotent.
self._task_ran_successfully()
@@ -413,9 +413,7 @@ class TaskSchedulerApiTest(test_case.TestCase):
# Now any of the 2 tasks could be reused. Assert the right one (the most
# recent) is reused.
- cfg = config.settings()
cfg.reusable_task_age_secs = 100
- cfg.store()
# Third task is deduped against second task. That ensures ordering works
# correctly.
« no previous file with comments | « appengine/swarming/server/config.py ('k') | appengine/swarming/templates/restricted_config.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698