vincbeck commented on code in PR #23918:
URL: https://github.com/apache/airflow/pull/23918#discussion_r881977334
##########
tests/providers/amazon/aws/hooks/test_batch_waiters.py:
##########
@@ -274,19 +273,17 @@ def test_batch_job_waiting(aws_clients, aws_region,
job_queue_name, job_definiti
# moto transitions the Batch job status automatically.
job_name = "test-job"
- job_cmd = ['/bin/sh -c "for a in `seq 1 2`; do echo Hello World; sleep
0.25; done"']
job_response = aws_clients.batch.submit_job(
jobName=job_name,
jobQueue=aws_resources.job_queue_arn,
jobDefinition=aws_resources.job_definition_arn,
- containerOverrides={"command": job_cmd},
)
job_id = job_response["jobId"]
job_description = aws_clients.batch.describe_jobs(jobs=[job_id])
job_status = [job for job in job_description["jobs"] if job["jobId"] ==
job_id][0]["status"]
- assert job_status == "PENDING"
+ assert job_status == "RUNNABLE"
Review Comment:
It turns out the initial status returned by moto is `RUNNABLE`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]