Skip to content

Test bolt handshake timeout #546

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

Merged
merged 3 commits into from
Mar 30, 2023
Merged

Test bolt handshake timeout #546

merged 3 commits into from
Mar 30, 2023

Conversation

robsdedude
Copy link
Contributor

@robsdedude robsdedude commented Mar 29, 2023

Copy link
Contributor

@thelonelyvulpes thelonelyvulpes left a comment

Choose a reason for hiding this comment

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

lgtm.

with self.assertRaises(types.DriverError):
list(self._session.run("RETURN 1 AS n"))
took = perf_counter() - t0
self.assertLess(took, 3) # give it 1.5 seconds margin
Copy link
Contributor

Choose a reason for hiding this comment

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

I really don't like these tests, they are very prone to flakiness.
I see why timing is important here though, we should later consider a way to time it from the testkit backends, as that will be slightly more reliably timed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed. Timeouts are generally tough to test. It tends to be slow and flakes out easily :/

@robsdedude robsdedude merged commit 8c1b9a2 into 5.0 Mar 30, 2023
@robsdedude robsdedude deleted the test-bolt-handshake-timeout branch March 30, 2023 13:07
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