def test_update_timeout_with_decrease_on_success(client: NetworkClient): # Setup client._current_timeout = 50 # Run client._update_timeout_with(5.0, True) # Assert assert client._current_timeout == 40
def test_update_timeout_with_dont_decrease_below_minimum( client: NetworkClient): # Setup client._current_timeout = 30 # Run client._update_timeout_with(5.0, True) # Assert assert client._current_timeout == 30
def test_update_timeout_with_increase(client: NetworkClient): # Run client._update_timeout_with(5.0, False) # Assert assert client._current_timeout == 40