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

backend: add tests for transaction status #35

Merged
merged 1 commit into from
Aug 11, 2022
Merged

backend: add tests for transaction status #35

merged 1 commit into from
Aug 11, 2022

Conversation

djshow832
Copy link
Collaborator

What problem does this PR solve?

Issue Number: close #34

Problem Summary:
Add tests for transaction status.

What is changed and how it works:

  • TestTxnStatus: test whether the session is redirect-able when it has an active transaction.
  • TestMixPrepAndTxnStatus: test whether the session is redirect-able for mixed prepared statement status and txn status.
  • TestHoldRequest: test that the BEGIN statement will be held when the session is waiting for redirection.

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Notable changes

  • Has configuration change
  • Has HTTP API interfaces change (Don't forget to add the declarative for API)
  • Has weirctl change
  • Other user behavior changes

Release note

Please refer to Release Notes Language Style Guide to write a quality release note.

None

@djshow832 djshow832 requested a review from xhebox August 10, 2022 08:51
@xhebox xhebox merged commit 5bd467f into pingcap:main Aug 11, 2022
@djshow832 djshow832 deleted the txn_status branch August 11, 2022 08:14
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.

Add tests for transaction status
2 participants