Commit 925090f4 authored by antirez's avatar antirez
Browse files

Make an EXEC test more latency proof.

parent 2f62c966
...@@ -63,13 +63,13 @@ start_server {tags {"multi"}} { ...@@ -63,13 +63,13 @@ start_server {tags {"multi"}} {
r multi r multi
r set foo1 bar1 r set foo1 bar1
$rd config set maxmemory 1 $rd config set maxmemory 1
assert {[$rd read] eq {OK}}
catch {r lpush mylist myvalue} catch {r lpush mylist myvalue}
$rd config set maxmemory 0 $rd config set maxmemory 0
assert {[$rd read] eq {OK}}
r set foo2 bar2 r set foo2 bar2
catch {r exec} e catch {r exec} e
assert_match {EXECABORT*} $e assert_match {EXECABORT*} $e
assert {[$rd read] eq {OK}}
assert {[$rd read] eq {OK}}
$rd close $rd close
list [r exists foo1] [r exists foo2] list [r exists foo1] [r exists foo2]
} {0 0} } {0 0}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment