Skip to content

Conversation

robsdedude
Copy link
Contributor

Test started failing because 4.4 servers with the UTC patch started appearing.
The test did not account for all implications of the new protocol specs.

Test started failing because 4.4 servers with the UTC patch started appearing.
The test did not account for all implications of the new protocol specs.
@robsdedude robsdedude marked this pull request as ready for review September 2, 2022 09:50
return map(lambda x: getattr(x, "value", x), rec.values)

self._create_driver_and_session()
server_supports_utc = get_server_info().has_utc_patch
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is it not a simple boolean?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, I found out why below.
maybe it could be renamed server_version_may_support_utc :P

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, for 4.4 and 4.3 there's no straight-forward way for TestKit to know if the server supports the UTC patch or not. So this value can be 1 yes, 0 no, and 0.5 maybe 😬

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trilean.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might we consider an enum?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@bigmontz bigmontz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📅

@robsdedude robsdedude merged commit 2cff8e6 into 5.0 Sep 2, 2022
@robsdedude robsdedude deleted the fix-utc-tests-with-4.4-and-4.3-patch branch September 2, 2022 13:58
robsdedude added a commit that referenced this pull request Sep 2, 2022
robsdedude added a commit that referenced this pull request Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants