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

Unified Diff: infra/services/sysmon/system_metrics.py

Issue 2109393002: Make test_net_info a bit more robust. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Add tests Created 4 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 | « no previous file | infra/services/sysmon/test/system_metrics_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra/services/sysmon/system_metrics.py
diff --git a/infra/services/sysmon/system_metrics.py b/infra/services/sysmon/system_metrics.py
index 9c8689207e2d638b1c15926ece4716fe1c6c50b9..9b2e4382f4275a8a3ba63b4ee85dc696825a39a0 100644
--- a/infra/services/sysmon/system_metrics.py
+++ b/infra/services/sysmon/system_metrics.py
@@ -143,7 +143,7 @@ def get_mem_info():
mem_total.set(mem.total)
-def get_net_info(): # pragma: no cover
+def get_net_info():
metric_counter_names = [
(net_up, 'bytes_sent'),
(net_down, 'bytes_recv'),
« no previous file with comments | « no previous file | infra/services/sysmon/test/system_metrics_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698