Skip to content

Commit

Permalink
[AIRFLOW-6398] improve flakey test test_mark_success_no_kill (#6959)
Browse files Browse the repository at this point in the history
(cherry picked from commit fd34591)
  • Loading branch information
dstandish authored and potiuk committed Jan 21, 2020
1 parent 4576aa7 commit ec9d891
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/dags/test_mark_success.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
# specific language governing permissions and limitations
# under the License.
from datetime import datetime
from time import sleep

from airflow.models import DAG
from airflow.operators.bash_operator import BashOperator
from airflow.operators.python_operator import PythonOperator

DEFAULT_DATE = datetime(2016, 1, 1)

Expand All @@ -28,8 +29,10 @@
'start_date': DEFAULT_DATE,
}


dag = DAG(dag_id='test_mark_success', default_args=args)
task = BashOperator(
task = PythonOperator(
task_id='task1',
bash_command='sleep 600',
python_callable=lambda x: sleep(x), # pylint: disable=W0108
op_args=[600],
dag=dag)

0 comments on commit ec9d891

Please sign in to comment.