-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
session_test: move tests #4699
session_test: move tests #4699
Conversation
@hanfei1991 Please fix CI. |
@shenli Please look at the description |
Got it! |
new_session_test.go
Outdated
tk.MustExec("begin") | ||
tk.MustExec("insert into t set c2 = 31") | ||
tk.MustQuery("select c1 from t where c2 = 31").Check(testkit.Rows("9")) | ||
tk.MustQuery("update t set c2 = 44 where c2 = 2") |
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.
MustExec
new_session_test.go
Outdated
tk.MustExec("execute stmt using @v2") | ||
tk.MustExec("execute stmt using @v3") | ||
tk.MustExec("deallocate prepare stmt") | ||
tk.MustQuery("select c1 from t where c2 = 12").Check(testkit.Rows()) |
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.
testkit.Rows("7")
new_session_test.go
Outdated
|
||
tk.MustExec("commit") | ||
|
||
tk.MustQuery("select c1 from t where c2 = 12").Check(testkit.Rows()) |
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.
testkit.Rows("7")
@tiancaiamao 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.
LGTM
LGTM |
This test will retry forever in mock-tikv. It seems to exist a lock that would never be resolved. I need a help @coocood @tiancaiamao