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

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

Issue 1296863003: Reduce the number of MetricsData protos to put in each request. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Fix the test Created 5 years, 4 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/interface.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra_libs/ts_mon/test/interface_test.py
diff --git a/infra_libs/ts_mon/test/interface_test.py b/infra_libs/ts_mon/test/interface_test.py
index ca127f4e020a48dae2b80c9dc777b8c5058ba130..1f84f3f8f896ebcb0d0b9e755369c24500f24aed 100644
--- a/infra_libs/ts_mon/test/interface_test.py
+++ b/infra_libs/ts_mon/test/interface_test.py
@@ -95,7 +95,7 @@ class GlobalsTest(auto_stub.TestCase):
# pylint: disable=unused-argument
def serialize_to(pb, default_target=None, loop_action=None):
- for _ in xrange(5001):
+ for _ in xrange(1001):
loop_action(pb)
pb.data.add().name = 'foo'
@@ -112,7 +112,7 @@ class GlobalsTest(auto_stub.TestCase):
interface.flush()
self.assertEquals(2, interface.state.global_monitor.send.call_count)
- self.assertEqual(5000, data_lengths[0])
+ self.assertEqual(1000, data_lengths[0])
self.assertEqual(1, data_lengths[1])
def test_register_unregister(self):
« no previous file with comments | « infra_libs/ts_mon/interface.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698