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

Function test_server_timeouts

test/test_options.py:238–247  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

236
237
238def test_server_timeouts() -> None:
239 original_connect = option(Option.GET_SERVER_CONNECT_TIMEOUT)
240 option(Option.SET_SERVER_CONNECT_TIMEOUT, 5000)
241 assert option(Option.GET_SERVER_CONNECT_TIMEOUT) == 5000
242 option(Option.SET_SERVER_CONNECT_TIMEOUT, original_connect)
243
244 original_timeout = option(Option.GET_SERVER_TIMEOUT)
245 option(Option.SET_SERVER_TIMEOUT, 10000)
246 assert option(Option.GET_SERVER_TIMEOUT) == 10000
247 option(Option.SET_SERVER_TIMEOUT, original_timeout)
248
249
250def test_user_agent_product() -> None:

Callers

nothing calls this directly

Calls 1

optionFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…