Skip to content

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

Merged
vpetrovykh merged 1 commit intomasterfrom
syncfix
Dec 13, 2024
Merged

A bunch of tests that were mismatched between sycn/async.#562
vpetrovykh merged 1 commit intomasterfrom
syncfix

Conversation

@vpetrovykh
Copy link
Contributor

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
@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