[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [nyx/master] Fix unit tests
commit 314dd59d1d1bc1fdc6aa88763b4c16e5e4284aeb
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date: Wed Apr 18 11:39:44 2018 -0700
Fix unit tests
Just a couple minor regressions from prior changes.
---
nyx/panel/graph.py | 2 --
test/arguments.py | 2 +-
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/nyx/panel/graph.py b/nyx/panel/graph.py
index a33aaa4..79b50fa 100644
--- a/nyx/panel/graph.py
+++ b/nyx/panel/graph.py
@@ -108,8 +108,6 @@ def _bandwidth_title_stats():
stats.append('limit: %s/s' % bw_rate_label)
stats.append('burst: %s/s' % bw_burst_label)
- my_router_status_entry = nyx.tracker.get_consensus_tracker().my_router_status_entry()
-
my_server_descriptor = controller.get_server_descriptor(default = None)
observed_bw = getattr(my_server_descriptor, 'observed_bandwidth', None)
diff --git a/test/arguments.py b/test/arguments.py
index da55127..5223af5 100644
--- a/test/arguments.py
+++ b/test/arguments.py
@@ -83,7 +83,7 @@ class TestArgumentParsing(unittest.TestCase):
def test_help(self):
self.assertTrue(get_help().startswith('Usage nyx [OPTION]'))
- self.assertTrue('change control interface from 127.0.0.1:9051' in get_help())
+ self.assertTrue('change control interface from 127.0.0.1:default' in get_help())
def test_version(self):
self.assertTrue(get_version().startswith('nyx version'))
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits