Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
2ebcd63d
Commit
2ebcd63d
authored
Jun 09, 2020
by
antirez
Browse files
Adapt EVAL+busy script test to new behavior.
parent
cdad0e64
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/multi.tcl
View file @
2ebcd63d
...
@@ -363,6 +363,9 @@ start_server {tags {"multi"}} {
...
@@ -363,6 +363,9 @@ start_server {tags {"multi"}} {
set xx
[
r get xx
]
set xx
[
r get xx
]
# make sure that either the whole transcation passed or none of it
(
we actually expect none
)
# make sure that either the whole transcation passed or none of it
(
we actually expect none
)
assert
{
$xx == 1 || $xx == 3
}
assert
{
$xx == 1 || $xx == 3
}
# Discard the transaction since EXEC likely got -BUSY error
# so the client is still in MULTI state.
catch
{
$rd2 discard
;
$rd2
read
}
e
# check that the connection is no longer in multi state
# check that the connection is no longer in multi state
$rd2 ping asdf
$rd2 ping asdf
set pong
[
$rd2
read
]
set pong
[
$rd2
read
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment