mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-19 15:28:28 +01:00
exp init: timeout prompts' test
The `exp init` tests may just keep waiting on the prompts blocking tests. The blocking of prompts is likely a failure in tests setup or a bug in the implementation. It's hard to find out these failures or avoid it. If they take longer than 1 second, they most likely have failed as most of test takes 0.1 second at max.
This commit is contained in:
committed by
Ruslan Kuprieiev
parent
46289182d2
commit
bf313d92aa
@@ -9,6 +9,9 @@ from dvc.main import main
|
||||
from dvc.repo.experiments.init import init
|
||||
from dvc.stage.exceptions import DuplicateStageName
|
||||
|
||||
# the tests may hang on prompts on failure
|
||||
pytestmark = pytest.mark.timeout(1)
|
||||
|
||||
|
||||
def test_init_simple(tmp_dir, scm, dvc, capsys):
|
||||
tmp_dir.gen(
|
||||
|
||||
Reference in New Issue
Block a user