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

Unified Diff: infra_libs/ts_mon/common/test/interface_test.py

Issue 1797103003: gae_ts_mon: instrument Cloud Endpoint methods (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Reduced test flakiness Created 4 years, 9 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 | « infra_libs/ts_mon/common/test/http_metrics_test.py ('k') | infra_libs/ts_mon/common/test/metrics_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra_libs/ts_mon/common/test/interface_test.py
diff --git a/infra_libs/ts_mon/common/test/interface_test.py b/infra_libs/ts_mon/common/test/interface_test.py
index 753ea07e7694467e1e8461f0e86ccb29433597e7..81875c35d9e846eb7cfc883b61911184d995f240 100644
--- a/infra_libs/ts_mon/common/test/interface_test.py
+++ b/infra_libs/ts_mon/common/test/interface_test.py
@@ -56,9 +56,9 @@ class GlobalsTest(unittest.TestCase):
self.assertEqual('foo', proto.data[0].name)
def test_flush_disabled(self):
+ interface.reset_for_unittest(disable=True)
interface.state.global_monitor = stubs.MockMonitor()
interface.state.target = stubs.MockTarget()
- interface.state.flush_enabled_fn = lambda: False
interface.flush()
self.assertFalse(interface.state.global_monitor.send.called)
« no previous file with comments | « infra_libs/ts_mon/common/test/http_metrics_test.py ('k') | infra_libs/ts_mon/common/test/metrics_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698