2222from sagemaker .chainer .estimator import Chainer
2323from sagemaker .chainer .model import ChainerModel
2424from sagemaker .utils import sagemaker_timestamp
25- from tests .integ import DATA_DIR
25+ from tests .integ import DATA_DIR , TRAINING_DEFAULT_TIMEOUT_MINUTES
2626from tests .integ .timeout import timeout , timeout_and_delete_endpoint_by_name
2727
2828
@@ -40,7 +40,7 @@ def test_distributed_gpu_training(sagemaker_session, chainer_full_version):
4040
4141
4242def test_training_with_additional_hyperparameters (sagemaker_session , chainer_full_version ):
43- with timeout (minutes = 15 ):
43+ with timeout (minutes = TRAINING_DEFAULT_TIMEOUT_MINUTES ):
4444 script_path = os .path .join (DATA_DIR , 'chainer_mnist' , 'mnist.py' )
4545 data_path = os .path .join (DATA_DIR , 'chainer_mnist' )
4646
@@ -101,7 +101,7 @@ def test_async_fit(sagemaker_session):
101101
102102
103103def test_failed_training_job (sagemaker_session , chainer_full_version ):
104- with timeout (minutes = 15 ):
104+ with timeout (minutes = TRAINING_DEFAULT_TIMEOUT_MINUTES ):
105105 script_path = os .path .join (DATA_DIR , 'chainer_mnist' , 'failure_script.py' )
106106 data_path = os .path .join (DATA_DIR , 'chainer_mnist' )
107107
@@ -119,7 +119,7 @@ def test_failed_training_job(sagemaker_session, chainer_full_version):
119119
120120def _run_mnist_training_job (sagemaker_session , instance_type , instance_count ,
121121 chainer_full_version , wait = True ):
122- with timeout (minutes = 15 ):
122+ with timeout (minutes = TRAINING_DEFAULT_TIMEOUT_MINUTES ):
123123
124124 script_path = os .path .join (DATA_DIR , 'chainer_mnist' , 'mnist.py' ) if instance_type == 1 else \
125125 os .path .join (DATA_DIR , 'chainer_mnist' , 'distributed_mnist.py' )
0 commit comments