Commit 4709b515 authored by brizental's avatar brizental Committed by henry
Browse files

fixup! TB 43817: Add tests for Tor Browser

Bug 43243:
BUGFIX: Make it possible to run both tor browser tests in sequence.
Turns out they need to explicitly close the browser, otherwise
marionette doesn't do that for us unless it's the end of the whole
suite. We want a restart, because we want to bootstrap before each test.
parent cb0b81c5
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -8,6 +8,9 @@ TOR_BOOTSTRAP_TIMEOUT = 30000 # 30s


class TestCircuitIsolation(MarionetteTestCase):
    def tearDown(self):
        self.marionette.restart(in_app=False, clean=True)
        super(TestCircuitIsolation, self).tearDown()

    def bootstrap(self):
        with self.marionette.using_context("chrome"):
+4 −0
Original line number Diff line number Diff line
@@ -14,6 +14,10 @@ class TestNetworkCheck(MarionetteTestCase):

        self.l10n = L10n(self.marionette)

    def tearDown(self):
        self.marionette.restart(in_app=False, clean=True)
        super(TestNetworkCheck, self).tearDown()

    def attemptConnection(self, tries=1):
        if tries > 3:
            self.assertTrue(False, "Failed to connect to Tor after 3 attempts")