commit bbd6b100879bf260d4c82bc5cec014b78c140595 Author: Damian Johnson atagar@torproject.org Date: Fri Dec 27 14:14:45 2019 -0800
Fix collector integ test
Minor fix for three online tests...
====================================================================== FAIL: test_index_plaintext ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/atagar/Desktop/stem/test/require.py", line 43, in wrapped return func(self, *args, **kwargs) File "/home/atagar/Desktop/stem/test/require.py", line 58, in wrapped return func(self, *args, **kwargs) File "/home/atagar/Desktop/stem/test/integ/descriptor/collector.py", line 22, in test_index_plaintext self._test_index(None) File "/home/atagar/Desktop/stem/test/integ/descriptor/collector.py", line 98, in _test_index self.assertEqual(['archive', 'contrib', 'recent'], [entry['path'] for entry in index['directories']]) AssertionError: Lists differ: ['archive', 'contrib', 'recent... != [u'archive', u'recent']
First differing element 1: 'contrib' u'recent'
First list contains 1 additional elements. First extra element 2: 'recent'
- ['archive', 'contrib', 'recent'] ? ^^^^^^^^^^^
+ [u'archive', u'recent'] ? + ^ --- test/integ/descriptor/collector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/integ/descriptor/collector.py b/test/integ/descriptor/collector.py index f1336c53..ac33490d 100644 --- a/test/integ/descriptor/collector.py +++ b/test/integ/descriptor/collector.py @@ -95,4 +95,4 @@ class TestCollector(unittest.TestCase): index = collector.index(compression = compression)
self.assertEqual('https://collector.torproject.org', index['path']) - self.assertEqual(['archive', 'contrib', 'recent'], [entry['path'] for entry in index['directories']]) + self.assertEqual(['archive', 'recent'], [entry['path'] for entry in index['directories']])