MCPcopy Create free account
hub / github.com/libgit2/pygit2 / test_server_timeouts

Function test_server_timeouts

test/test_settings.py:199–210  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

197
198
199def test_server_timeouts() -> None:
200 original_connect = pygit2.settings.server_connect_timeout
201 original_timeout = pygit2.settings.server_timeout
202 try:
203 pygit2.settings.server_connect_timeout = 5000
204 assert pygit2.settings.server_connect_timeout == 5000
205
206 pygit2.settings.server_timeout = 10000
207 assert pygit2.settings.server_timeout == 10000
208 finally:
209 pygit2.settings.server_connect_timeout = original_connect
210 pygit2.settings.server_timeout = original_timeout
211
212
213def test_extensions() -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…