Skip to content

Commit 46fefc6

Browse files
committed
test(connection, client_protocol_invalid_logs): disable flaky test
1 parent 19a0c84 commit 46fefc6

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

test/integration/test_connection.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -199,17 +199,17 @@ def test_client_protocol_version_is_used(db_kwargs, _input):
199199
assert conn._client_protocol_version == _input
200200

201201

202-
def test_client_protocol_version_invalid_logs(db_kwargs, caplog):
203-
db_kwargs["client_protocol_version"] = max(ClientProtocolVersion.list()) + 1
204-
del db_kwargs["region"]
205-
del db_kwargs["cluster_identifier"]
206-
207-
with caplog.at_level(logging.DEBUG):
208-
with redshift_connector.Connection(**db_kwargs) as con:
209-
act_client_protocol: int = con._client_protocol_version
210-
assert "Server indicated {} transfer protocol will be used rather than protocol requested by client: {}".format(
211-
act_client_protocol, db_kwargs["client_protocol_version"]
212-
)
202+
# def test_client_protocol_version_invalid_logs(db_kwargs, caplog):
203+
# db_kwargs["client_protocol_version"] = max(ClientProtocolVersion.list()) + 1
204+
# del db_kwargs["region"]
205+
# del db_kwargs["cluster_identifier"]
206+
#
207+
# with caplog.at_level(logging.DEBUG):
208+
# with redshift_connector.Connection(**db_kwargs) as con:
209+
# act_client_protocol: int = con._client_protocol_version
210+
# assert "Server indicated {} transfer protocol will be used rather than protocol requested by client: {}".format(
211+
# act_client_protocol, db_kwargs["client_protocol_version"]
212+
# )
213213

214214

215215
def test_client_protocol_version_too_large_is_lowered(db_kwargs, mocker):

0 commit comments

Comments
 (0)