[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [stem/master] Fix fallback directory unit test



commit 4de7bf1160bf9a7a054aa89703f3e1f420763373
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date:   Tue May 7 08:22:55 2019 -0700

    Fix fallback directory unit test
    
    Oops, forgot to re-run our unit tests after syncing. The relay used in our unit
    tests is no longer present.
    
            ======================================================================
            ERROR: test_from_cache
            ----------------------------------------------------------------------
            Traceback (most recent call last):
            File "/home/atagar/Desktop/stem/test/unit/directory/fallback.py", line 95, in test_from_cache
              self.assertEqual('5.39.92.199', fallbacks['0BEA4A88D069753218EAAAD6D22EA87B9A1319D6'].address)
            KeyError: '0BEA4A88D069753218EAAAD6D22EA87B9A1319D6'
---
 test/unit/directory/fallback.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/unit/directory/fallback.py b/test/unit/directory/fallback.py
index c523013d..59d59567 100644
--- a/test/unit/directory/fallback.py
+++ b/test/unit/directory/fallback.py
@@ -92,7 +92,7 @@ class TestFallback(unittest.TestCase):
   def test_from_cache(self):
     fallbacks = stem.directory.Fallback.from_cache()
     self.assertTrue(len(fallbacks) > 10)
-    self.assertEqual('5.39.92.199', fallbacks['0BEA4A88D069753218EAAAD6D22EA87B9A1319D6'].address)
+    self.assertEqual('193.171.202.146', fallbacks['01A9258A46E97FF8B2CAC7910577862C14F2C524'].address)
 
   @patch(URL_OPEN, Mock(return_value = io.BytesIO(FALLBACK_GITWEB_CONTENT)))
   def test_from_remote(self):

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits