jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1226825?usp=email )

Change subject: decrease wait cycles and increas wait time for test_watch
......................................................................

decrease wait cycles and increas wait time for test_watch

Change-Id: Ic05d9741a3e17f0aa0c82a9c4d6191a07e8be313
Signed-off-by: Xqt <[email protected]>
---
M tests/page_tests.py
1 file changed, 2 insertions(+), 4 deletions(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified




diff --git a/tests/page_tests.py b/tests/page_tests.py
index 6de059a..8d42776 100755
--- a/tests/page_tests.py
+++ b/tests/page_tests.py
@@ -1105,11 +1105,9 @@
         rv = userpage.watch(expiry='5 seconds')
         self.assertTrue(rv)
         self.assertIn(userpage, userpage.site.watched_pages(**wp_params))
-        # Wait for the expiry to pass
-        time.sleep(5)
         # Retry check for unwatch to propagate for up to 30 seconds
-        for _ in range(30):
-            time.sleep(1)
+        for _ in range(6):
+            time.sleep(5)  # Wait for the expiry to pass
             if userpage not in userpage.site.watched_pages(**wp_params):
                 break
         else:

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1226825?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ic05d9741a3e17f0aa0c82a9c4d6191a07e8be313
Gerrit-Change-Number: 1226825
Gerrit-PatchSet: 3
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to