diff --git a/requirements-dev.txt b/requirements-dev.txt index a3fe9b8..549d300 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,5 +1,5 @@ -r requirements.txt pytest>=4.6.9 -grpcio-tools==1.48.1 -pytz==2022.1 \ No newline at end of file +grpcio-tools>=1.48.1 +pytz==2022.1 diff --git a/requirements.txt b/requirements.txt index 28e69e0..8a64a8a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ -grpcio==1.48.1 +grpcio>=1.48.1 protobuf>=3.12.0<3.20.x google-api==0.1.12 googleapis-common-protos==1.56.4 google-api-core==2.10.0 -ecdsa>=0.18.0 \ No newline at end of file +ecdsa>=0.18.0 diff --git a/tests/immu/test_timeout.py b/tests/immu/test_timeout.py index ea0e1b3..3e36571 100644 --- a/tests/immu/test_timeout.py +++ b/tests/immu/test_timeout.py @@ -30,7 +30,10 @@ class TestTimeout: def test_simple_timeout(self, argsToBuildClient): url, login, password = argsToBuildClient client = ImmudbClient(url, timeout=1) - client.login(login, password) + try: + client.login(login, password) + except: + raise pytest.skip('Cannot reach immudb server') with pytest.raises(RpcError) as excinfo: client = ImmudbClient(url, timeout=0.001)