Pass --local-only down to the ServerStatus and Mode so that we can set shorter timeouts for local GUI tests. Update the tests to use a very short timeout

This commit is contained in:
Miguel Jacq 2018-09-27 15:43:59 +10:00
parent 2a7adb2365
commit 201f351279
No known key found for this signature in database
GPG key ID: EEA4341C6D97A0B6
5 changed files with 29 additions and 16 deletions

View file

@ -108,7 +108,7 @@ class OnionShareGuiTest(unittest.TestCase):
@pytest.mark.run(order=8)
def test_set_timeout(self):
CommonTests.test_set_timeout(self, 'share')
CommonTests.test_set_timeout(self, 'share', 5)
@pytest.mark.run(order=9)
def test_server_working_on_start_button_pressed(self):
@ -132,7 +132,7 @@ class OnionShareGuiTest(unittest.TestCase):
@pytest.mark.run(order=14)
def test_timeout(self):
CommonTests.test_server_timed_out(self, 'share', 120000)
CommonTests.test_server_timed_out(self, 'share', 10000)
@pytest.mark.run(order=15)
def test_web_service_is_stopped(self):