Skip to content

Commit

Permalink
Unit tests: linkcheck: configure a single linkcheck worker during 'te…
Browse files Browse the repository at this point in the history
…st_defaults' test case

With thanks to @picnixz for mentioning this configuration setting: sphinx-doc#11324 (comment)
  • Loading branch information
jayaddison committed Apr 18, 2023
1 parent 3bf835c commit 4305d11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/roots/test-linkcheck/conf.py
Expand Up @@ -2,3 +2,4 @@
exclude_patterns = ['_build']
linkcheck_anchors = True
linkcheck_timeout = 0.05
linkcheck_workers = 1
2 changes: 1 addition & 1 deletion tests/test_build_linkcheck.py
Expand Up @@ -99,7 +99,7 @@ def test_defaults(app):
with http_server(DefaultsHandler):
with ConnectionMeasurement() as m:
app.build()
assert m.connection_count == 5
assert m.connection_count == 1

# Text output
assert (app.outdir / 'output.txt').exists()
Expand Down

0 comments on commit 4305d11

Please sign in to comment.