-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
test: port lock table ut from mysql #10376
test: port lock table ut from mysql #10376
Conversation
ebfd548
to
5128e52
Compare
@razycs520 PTAL |
5128e52
to
fdf3b06
Compare
/run-all-tests |
@winkyao PTAL |
/run-all-tests |
@winkyao PTAL |
Codecov Report
@@ Coverage Diff @@
## master #10376 +/- ##
===========================================
Coverage 81.4098% 81.4098%
===========================================
Files 423 423
Lines 90973 90973
===========================================
Hits 74061 74061
Misses 11606 11606
Partials 5306 5306 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rest LGTM
d537f89
to
c6a3a1f
Compare
@crazycs520 PTAL again |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/run-all-tests |
@marsishandsome thanks for your contribution, please follow CONTRIBUTING.md to refine the PR title. |
@crazycs520 The two |
@tangenta PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rest LGTM
// Test: allow read | ||
tk.MustExec("lock tables t1 write local") | ||
tk.MustExec("insert into t1 values(NULL)") | ||
tk2.MustQuery("select count(*) from t1") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to check the result?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we do not need to check the result (see mysql lock table
test).
done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What problem does this PR solve?
port some unit test from mysql for lock table (#10343)
What is changed and how it works?
add some unit test
Tests