Skip to content

Commit

Permalink
testsuite: extend timeout in t2201-job-cmd.t
Browse files Browse the repository at this point in the history
Problem: The test

  flux job: timeleft works under mini alloc (and job)

often hits a timeout when run on a busy system or with a large value
for `make -j`.

Extend the timeout and update the expected output.
  • Loading branch information
grondo committed Sep 21, 2023
1 parent 15fecb5 commit 73f477b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions t/t2201-job-cmd.t
Original file line number Diff line number Diff line change
Expand Up @@ -763,11 +763,11 @@ test_expect_success 'flux job: timeleft works under mini alloc (and job)' '
flux run flux job timeleft > timeleft4
EOF
chmod +x test.sh &&
flux alloc -n1 -t 1m ./test.sh &&
flux alloc -n1 -t 5m ./test.sh &&
test_debug "cat timeleft3" &&
test $(cat timeleft3) -lt 60 &&
test $(cat timeleft3) -lt 300 &&
test_debug "cat timeleft4" &&
test $(cat timeleft4) -lt 60
test $(cat timeleft4) -lt 300
'
test_expect_success 'flux job: timeleft works for a jobid' '
id=$(flux submit --wait-event=start -t 1m sleep 60) &&
Expand Down

0 comments on commit 73f477b

Please sign in to comment.