Skip to content

Commit

Permalink
tests: linkcheck: increase workload size in connection-pool contentio…
Browse files Browse the repository at this point in the history
…n test
  • Loading branch information
jayaddison committed May 9, 2023
1 parent 60765d3 commit 589bca5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_build_linkcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -677,8 +677,12 @@ def test_connection_contention(get_adapter, app, capsys):
socket.setdefaulttimeout(5)

# Place a workload into the linkcheck queue
#
# Note: excess linkcheck requests are issued here, intended to encourage
# Windows systems to flush pending network socket data when timeouts are
# enabled.
rqueue, wqueue, link_count = Queue(), Queue(), 10
for _ in range(link_count):
for _ in range(link_count * 5):
wqueue.put(CheckRequest(0, Hyperlink("http://localhost:7777", "test", 1)))

# Create single-hyperlink-consumer threads
Expand Down

0 comments on commit 589bca5

Please sign in to comment.