diff options
author | antirez <antirez@gmail.com> | 2020-06-09 12:19:14 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2020-06-09 12:19:14 +0200 |
commit | 2ebcd63d6a011dc46df26d27b860209a28efe727 (patch) | |
tree | afe0d024b485dc10d5cb677232c98042753dc476 /tests | |
parent | cdad0e6485d108f2bf330ae2e8ae5fa7ef158ec1 (diff) | |
download | redis-2ebcd63d6a011dc46df26d27b860209a28efe727.tar.gz |
Adapt EVAL+busy script test to new behavior.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/multi.tcl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unit/multi.tcl b/tests/unit/multi.tcl index 55f18bec8..0c70fbde7 100644 --- a/tests/unit/multi.tcl +++ b/tests/unit/multi.tcl @@ -363,6 +363,9 @@ start_server {tags {"multi"}} { set xx [r get xx] # make sure that either the whole transcation passed or none of it (we actually expect none) 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 $rd2 ping asdf set pong [$rd2 read] |