Skip to content

Commit

Permalink
Adapt EVAL+busy script test to new behavior.
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Jun 9, 2020
1 parent ee8dd01 commit a7d3670
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/unit/multi.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit a7d3670

Please sign in to comment.