fix(test): wait for the window to leave fullscreen before a resize and give the integration suite 30 minutes
This commit is contained in:
1 parent
9344228e84
commit
e4de6d0f9a
5 files changed
+14
-8
No files matched your search
@@ -10,10 +10,10 @@ import subprocess
|
||||
import sys
|
||||
from collections import defaultdict
|
||||
|
||||
# Time budget of the whole suite. CI runs it in two shards of ten minutes, so a
|
||||
# shard gets its share of the budget and never less than ten minutes, and an
|
||||
# unsharded local run gets the whole budget.
|
||||
SUITE_TIMEOUT_MINUTES = 20
|
||||
# Time budget of the whole suite. CI runs it in two shards of fifteen minutes,
|
||||
# so a shard gets its share of the budget and never less than ten minutes, and
|
||||
# an unsharded local run gets the whole budget.
|
||||
SUITE_TIMEOUT_MINUTES = 30
|
||||
SHARD_TIMEOUT_FLOOR_MINUTES = 10
|
||||
|
||||
|
||||
|
||||
@@ -115,7 +115,7 @@ class IntegrationSuiteTests(unittest.TestCase):
|
||||
self.assertEqual(len(self.selected(calls)), 5)
|
||||
|
||||
def test_timeout_shares_the_suite_budget_between_shards(self):
|
||||
cases = [(None, "20m"), ("1", "20m"), ("2", "10m"), ("3", "10m")]
|
||||
cases = [(None, "30m"), ("1", "30m"), ("2", "15m"), ("3", "10m")]
|
||||
for total, expected in cases:
|
||||
with self.subTest(total=total):
|
||||
settings = None if total is None else {"TEST_SHARD_INDEX": "1", "TEST_SHARD_TOTAL": total}
|
||||
|
||||
Reference in new issue
Block a user