Skip to content

Commit ff2c814

Browse files
committed
minor changes to log msg
1 parent d99a997 commit ff2c814

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

test/runtests.jl

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -402,20 +402,27 @@ include("setup.jl")
402402
json = download_json("$get_url?id=$id", downloader = downloader)
403403
@test get(json["args"], "id", nothing) == ["$id"]
404404
end
405-
405+
406+
thread_count=Base.Threads.nthreads()
407+
@info("starting concurrent requests test",
408+
get_url=get_url,
409+
post_url=post_url,
410+
thread_count=thread_count,
411+
)
412+
# thread_options = (thread_count > 1 ? (false, true) : (true,))
413+
thread_options = (false, true)
414+
406415
for downloader in (nothing, mine)
407416
have_lsof = Sys.which("lsof") !== nothing
408417
count_tcp() = Base.count(x->contains("TCP",x), split(read(`lsof -p $(getpid())`, String), '\n'))
409418
if have_lsof
410419
n_tcp = count_tcp()
411420
end
412421
for method in (:get, :post)
413-
for use_threads in (false, true)
422+
for use_threads in thread_options
414423
@info("concurrent requests test",
415424
is_default_downloader=(downloader === nothing),
416425
method=method,
417-
get_url=get_url,
418-
thread_count=Base.Threads.nthreads(),
419426
use_threads=use_threads,
420427
)
421428
t = @elapsed @sync for id = 1:count

0 commit comments

Comments
 (0)