[tor-commits] [stem/master] Furthermore, decorate test_get_microdescriptors() with @test.require.online

atagar at torproject.org atagar at torproject.org
Sun Jun 24 23:10:04 UTC 2018

commit 3854f6af4543c6d2b5793025c1c780c4ee85afe3
Author: Dave Rolek <dmr-x at riseup.net>
Date:   Thu Jun 21 19:19:47 2018 +0000

    Furthermore, decorate test_get_microdescriptors() with @test.require.online
    The previous commit should address #26225, but a tor instance that has
    never been online won't generate a cache of microdescriptors, so it
    seems superfluous (although not completely pointless) to run this test
    outside the ONLINE target.
 test/integ/control/controller.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/integ/control/controller.py b/test/integ/control/controller.py
index 4d28afac..5c989889 100644
--- a/test/integ/control/controller.py
+++ b/test/integ/control/controller.py
@@ -1147,6 +1147,7 @@ class TestController(unittest.TestCase):
       self.assertEqual(md_by_fingerprint, md_by_nickname)
+  @test.require.online
   def test_get_microdescriptors(self):
     Fetches a few descriptors via the get_microdescriptors() method.

More information about the tor-commits mailing list