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

session_test: move tests #4699

Merged
merged 2 commits into from
Oct 9, 2017
Merged

session_test: move tests #4699

merged 2 commits into from
Oct 9, 2017

Conversation

hanfei1991
Copy link
Member

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

@shenli
Copy link
Member

shenli commented Sep 30, 2017

@hanfei1991 Please fix CI.

@hanfei1991
Copy link
Member Author

@shenli Please look at the description

@shenli
Copy link
Member

shenli commented Sep 30, 2017

Got it!

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")
Copy link
Contributor

Choose a reason for hiding this comment

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

MustExec

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())
Copy link
Contributor

Choose a reason for hiding this comment

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

testkit.Rows("7")


tk.MustExec("commit")

tk.MustQuery("select c1 from t where c2 = 12").Check(testkit.Rows())
Copy link
Contributor

Choose a reason for hiding this comment

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

testkit.Rows("7")

@hanfei1991
Copy link
Member Author

@tiancaiamao PTAL

Copy link
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

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

LGTM

@tiancaiamao
Copy link
Contributor

LGTM

@tiancaiamao tiancaiamao merged commit af9b092 into master Oct 9, 2017
@tiancaiamao tiancaiamao deleted the hanfei/AutoIncrementWithRetry branch October 9, 2017 08:38
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.

4 participants