aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2019-11-10 14:22:00 -0800
committerMicah Lee <micah@micahflee.com>2019-11-10 14:22:00 -0800
commit6df5ab75f680892341af94a138b35ec24f29f29e (patch)
treee36db31712b76cffaa2c44d2b12286f37d611d1a /tests
parent16245d33e3b0c886d1201c0ef88a7c14b8d5b40e (diff)
downloadonionshare-6df5ab75f680892341af94a138b35ec24f29f29e.tar.gz
onionshare-6df5ab75f680892341af94a138b35ec24f29f29e.zip
Add some waits so the tests will pass consistently
Diffstat (limited to 'tests')
-rw-r--r--tests/test_gui_receive.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_gui_receive.py b/tests/test_gui_receive.py
index 25f5cd3b..b3971144 100644
--- a/tests/test_gui_receive.py
+++ b/tests/test_gui_receive.py
@@ -69,6 +69,8 @@ class TestReceive(GuiBaseTest):
def upload_file_should_fail(self, tab):
"""Test that we can't upload the file when permissions are wrong, and expected content is shown"""
+ QtTest.QTest.qWait(1000)
+
files = {"file[]": open(self.tmpfile_test, "rb")}
url = f"http://127.0.0.1:{tab.app.port}/upload"
if tab.settings.get("general", "public"):
@@ -87,7 +89,7 @@ class TestReceive(GuiBaseTest):
if window:
window.close()
- QtCore.QTimer.singleShot(200, accept_dialog)
+ QtCore.QTimer.singleShot(1000, accept_dialog)
self.assertTrue("Error uploading, please inform the OnionShare user" in r.text)
def try_without_auth_in_non_public_mode(self, tab):