Skip to content

Commit d1cf3fe

Browse files
chu11mergify[bot]
authored andcommitted
testsuite: remove unused function
Problem: In t2261-job-list-update, the helper function wait_jobid_state() is defined but not used. It was cut and pasted in. Solution: Remove unused function.
1 parent ccbb58f commit d1cf3fe

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

t/t2261-job-list-update.t

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,6 @@ fj_wait_event() {
1212
flux job wait-event --timeout=20 "$@"
1313
}
1414

15-
wait_jobid_state() {
16-
local jobid=$(flux job id $1)
17-
local state=$2
18-
local i=0
19-
while ! flux job list --states=${state} | grep $jobid > /dev/null \
20-
&& [ $i -lt 50 ]
21-
do
22-
sleep 0.1
23-
i=$((i + 1))
24-
done
25-
if [ "$i" -eq "50" ]
26-
then
27-
return 1
28-
fi
29-
return 0
30-
}
31-
3215
# submit a whole bunch of jobs for job list testing
3316
#
3417
# - the first loop of job submissions are intended to have some jobs run

0 commit comments

Comments
 (0)