Lines 168-176
sub test_search{
Link Here
|
168 |
# if we haven't completed the batch in two minutes, it's not happening |
168 |
# if we haven't completed the batch in two minutes, it's not happening |
169 |
for my $counter ( 1 .. 24 ) { |
169 |
for my $counter ( 1 .. 24 ) { |
170 |
$agent->get( |
170 |
$agent->get( |
171 |
"$intranet/cgi-bin/koha/tools/background-job-progress.pl?jobID=$jobID", |
171 |
"$intranet/cgi-bin/koha/tools/background-job-progress.pl?jobID=$jobID" |
172 |
"get job progress" |
172 |
); # get job progress |
173 |
); |
|
|
174 |
$jsonresponse = decode_json $agent->content(); |
173 |
$jsonresponse = decode_json $agent->content(); |
175 |
if ( $jsonresponse->{'job_status'} eq 'completed' ) { |
174 |
if ( $jsonresponse->{'job_status'} eq 'completed' ) { |
176 |
$completed = 1; |
175 |
$completed = 1; |
177 |
- |
|
|