mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
Increase timeout for slow tests (#109206)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/109206 Approved by: https://github.com/huydhn
This commit is contained in:
parent
0dcea70bfd
commit
47adcd412f
1 changed files with 6 additions and 1 deletions
|
|
@ -601,8 +601,13 @@ def run_test(
|
|||
and not RERUN_DISABLED_TESTS
|
||||
and not options.continue_through_error
|
||||
)
|
||||
is_slow = "slow" in os.environ.get("TEST_CONFIG", "") or "slow" in os.environ.get(
|
||||
"BUILD_ENVRIONMENT", ""
|
||||
)
|
||||
timeout = (
|
||||
THRESHOLD * 3
|
||||
THRESHOLD * 6
|
||||
if is_slow
|
||||
else THRESHOLD * 3
|
||||
if should_file_rerun
|
||||
and isinstance(test_module, ShardedTest)
|
||||
and test_module.time is not None
|
||||
|
|
|
|||
Loading…
Reference in a new issue