Skip to content

Commit

Permalink
Fix collector integ test
Browse files Browse the repository at this point in the history
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']
  ?  +           ^
  • Loading branch information
atagar committed Dec 27, 2019
1 parent f34212f commit bbd6b10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/integ/descriptor/collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@ def _test_index(self, compression):
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']])

0 comments on commit bbd6b10

Please sign in to comment.