You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2023/01/10 11:32:15 UTC
[tinkerpop] 01/03: Added extra assertions in tests CTR
This is an automated email from the ASF dual-hosted git repository.
spmallette pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git
commit 43edc09667625f46f55d4163bac11e621b3262b1
Author: Stephen Mallette <st...@amazon.com>
AuthorDate: Tue Jan 10 06:29:06 2023 -0500
Added extra assertions in tests CTR
---
gremlin-python/src/main/python/tests/driver/test_client.py | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/gremlin-python/src/main/python/tests/driver/test_client.py b/gremlin-python/src/main/python/tests/driver/test_client.py
index 63ab354be8..da3de65bae 100644
--- a/gremlin-python/src/main/python/tests/driver/test_client.py
+++ b/gremlin-python/src/main/python/tests/driver/test_client.py
@@ -87,6 +87,9 @@ def test_client_error(client):
assert 'stackTrace' in ex.status_attributes
assert str(ex) == f"{ex.status_code}: {ex.status_message}"
+ # still can submit after failure
+ assert client.submit('x + x', {'x': 2}).all().result()[0] == 4
+
def test_client_connection_pool_after_error(client):
# Overwrite fixture with pool_size=1 client
@@ -101,6 +104,9 @@ def test_client_connection_pool_after_error(client):
assert gse.status_code == 597
assert client.available_pool_size == 1
+ # still can submit after failure
+ assert client.submit('x + x', {'x': 2}).all().result()[0] == 4
+
def test_client_side_timeout_set_for_aiohttp(client):
client = Client(test_no_auth_url, 'gmodern',
@@ -114,6 +120,9 @@ def test_client_side_timeout_set_for_aiohttp(client):
# asyncio TimeoutError has no message.
assert str(err) == ""
+ # still can submit after failure
+ assert client.submit('x + x', {'x': 2}).all().result()[0] == 4
+
async def async_connect(enable):
try: