Commit 3c6f9ac3 authored by Salvatore Sanfilippo's avatar Salvatore Sanfilippo
Browse files

Merge pull request #1902 from mattsta/comment-fixes

ALL comment fixes
parents 389ec305 be006163
...@@ -27,7 +27,7 @@ start_server {tags {"introspection"}} { ...@@ -27,7 +27,7 @@ start_server {tags {"introspection"}} {
test {CLIENT LIST shows empty fields for unassigned names} { test {CLIENT LIST shows empty fields for unassigned names} {
r client list r client list
} {*name= *} } {*name= *}
test {CLIENT SETNAME does not accept spaces} { test {CLIENT SETNAME does not accept spaces} {
catch {r client setname "foo bar"} e catch {r client setname "foo bar"} e
set e set e
......
...@@ -28,7 +28,7 @@ start_server {tags {"maxmemory"}} { ...@@ -28,7 +28,7 @@ start_server {tags {"maxmemory"}} {
} { } {
test "maxmemory - is the memory limit honoured? (policy $policy)" { test "maxmemory - is the memory limit honoured? (policy $policy)" {
# make sure to start with a blank instance # make sure to start with a blank instance
r flushall r flushall
# Get the current memory limit and calculate a new limit. # Get the current memory limit and calculate a new limit.
# We just add 100k to the current memory size so that it is # We just add 100k to the current memory size so that it is
# fast for us to reach that limit. # fast for us to reach that limit.
...@@ -60,7 +60,7 @@ start_server {tags {"maxmemory"}} { ...@@ -60,7 +60,7 @@ start_server {tags {"maxmemory"}} {
} { } {
test "maxmemory - only allkeys-* should remove non-volatile keys ($policy)" { test "maxmemory - only allkeys-* should remove non-volatile keys ($policy)" {
# make sure to start with a blank instance # make sure to start with a blank instance
r flushall r flushall
# Get the current memory limit and calculate a new limit. # Get the current memory limit and calculate a new limit.
# We just add 100k to the current memory size so that it is # We just add 100k to the current memory size so that it is
# fast for us to reach that limit. # fast for us to reach that limit.
...@@ -102,7 +102,7 @@ start_server {tags {"maxmemory"}} { ...@@ -102,7 +102,7 @@ start_server {tags {"maxmemory"}} {
} { } {
test "maxmemory - policy $policy should only remove volatile keys." { test "maxmemory - policy $policy should only remove volatile keys." {
# make sure to start with a blank instance # make sure to start with a blank instance
r flushall r flushall
# Get the current memory limit and calculate a new limit. # Get the current memory limit and calculate a new limit.
# We just add 100k to the current memory size so that it is # We just add 100k to the current memory size so that it is
# fast for us to reach that limit. # fast for us to reach that limit.
......
...@@ -187,7 +187,7 @@ start_server { ...@@ -187,7 +187,7 @@ start_server {
assert_equal [lsort -real $floats] [r sort mylist] assert_equal [lsort -real $floats] [r sort mylist]
} }
test "SORT with STORE returns zero if result is empty (github isse 224)" { test "SORT with STORE returns zero if result is empty (github issue 224)" {
r flushdb r flushdb
r sort foo store bar r sort foo store bar
} {0} } {0}
......
...@@ -49,9 +49,9 @@ inserted = r.dbsize ...@@ -49,9 +49,9 @@ inserted = r.dbsize
first_set_max_id = id first_set_max_id = id
puts "#{r.dbsize} keys inserted" puts "#{r.dbsize} keys inserted"
# Access keys sequencially # Access keys sequentially
puts "Access keys sequencially" puts "Access keys sequentially"
(1..first_set_max_id).each{|id| (1..first_set_max_id).each{|id|
r.get(id) r.get(id)
# sleep 0.001 # sleep 0.001
......
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