Skip to content

Commit 2697e32

Browse files
richp405ddimatos
andauthored
Removed a test condition that obscured duration (#1364)
* removed a function in a test that would obscure if null durations are coming back it appears this issue is resolved. * added changelog --------- Co-authored-by: Demetri <[email protected]>
1 parent 3d248c4 commit 2697e32

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
trivial:
2+
- test_zos_job_submit_func.py - Removed test setting that was covering a missing duration value.
3+
(https://github.com/ansible-collections/ibm_zos_core/pull/1364).

tests/functional/modules/test_zos_job_submit_func.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -695,10 +695,8 @@ def test_job_submit_max_rc(ansible_zos_module, args):
695695
#Expecting: - "The job return code 8 was non-zero in the job output, this job has failed"
696696
# - Consider using module zos_job_query to poll for a long running job or
697697
# increase option \\'wait_times_s` to a value greater than 10.",
698-
if result.get('duration'):
699-
duration = result.get('duration')
700-
else:
701-
duration = 0
698+
699+
duration = result.get('duration')
702700

703701
if duration >= args["wait_time_s"]:
704702
re.search(r'long running job', repr(result.get("msg")))

0 commit comments

Comments
 (0)