Skip to content

Fix RxSession in Testkit Backend #980

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 4 commits into from
Aug 31, 2022

Conversation

bigmontz
Copy link
Contributor

@bigmontz bigmontz commented Aug 29, 2022

Testkit environment variables without TEST_ prefix are not forward by the Testkit to the
scripts in the driver. So we need change the session type variable expected by the backend.py
to be TEST_SESSION_TYPE and then remove the prefix before redirect to the backend.

This PR also fix the SessionRun and TransactionRun to not initiate the stream.

Warn: RxSession.beginTransaction and RxSession.execute* were tweaked. The Observable<RxTransaction> only emits the RxTransaction when the begin is executed with success. The begin still defer the execution to the point observer is subscribed.

Testkit environment variables without `TEST_` prefix are not forward by the Testkit to the
scripts in the driver. So we need change the session type variable expected by the `backend.py`
to  be `TEST_SESSION_TYPE` and then remove the prefix before redirect to the backend.

This PR also fix the `SessionRun` and `TransactionRun` to not initate the stream.
Improves the RxSession.beginTransaction by make it failing in the correct observable.
@bigmontz bigmontz marked this pull request as ready for review August 30, 2022 12:56
@bigmontz
Copy link
Contributor Author

Depends on: neo4j-drivers/testkit#512

@robsdedude robsdedude self-requested a review August 30, 2022 13:51
bigmontz and others added 2 commits August 30, 2022 16:31
Trying to logging broken objects was causing the driver fails in unexpected moments.
This broken behaviour makes the driver fail different when the `debug` log is enabled.
@bigmontz bigmontz merged commit e109fc3 into neo4j:5.0 Aug 31, 2022
@bigmontz bigmontz deleted the 5.0-fix-rx-testkit-backend branch August 31, 2022 10:47
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.

3 participants