Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A bunch of tests that were mismatched between sycn/async. #562

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

vpetrovykh
Copy link
Member

SyncQueryTestCase base type was accidentally used with async test methods. Now thye are all sync.

@vpetrovykh vpetrovykh requested a review from msullivan December 13, 2024 19:02
SyncQueryTestCase base type was accidentally used with async test
methods. Now they are all sync.

A bug got fixed in an upcoming 6.0 version, so the test_async_query_sql_01
is no longer an expectedFailure for newer server, but will fail on older
build. Skip for older builds.
Comment on lines +1156 to +1159
if await self.client.query_required_single('''
select sys::get_version().major < 6
'''):
self.skipTest("Buggy in versions earlier than 6.0")
Copy link
Member

Choose a reason for hiding this comment

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

What happens? Probably we want some useful error mode there.

Copy link
Member

Choose a reason for hiding this comment

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

Like, edgedb-python should refuse to do query_sql if it isn't on proto v3

@vpetrovykh vpetrovykh merged commit ca4cfb2 into master Dec 13, 2024
62 checks passed
@vpetrovykh vpetrovykh deleted the syncfix branch December 13, 2024 21:29
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.

2 participants