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
f4c4a0fc
Commit
f4c4a0fc
authored
Jul 31, 2014
by
Matt Stancliff
Committed by
antirez
Oct 06, 2014
Browse files
Fix spelling in some test cases
parent
47fde270
Changes
5
Show whitespace changes
Inline
Side-by-side
tests/cluster/tests/05-slave-selection.tcl
View file @
f4c4a0fc
...
@@ -83,7 +83,7 @@ test "Cluster should eventually be up again" {
...
@@ -83,7 +83,7 @@ test "Cluster should eventually be up again" {
assert_cluster_state ok
assert_cluster_state ok
}
}
test
"Node #10 should event
a
ully replicate node #5"
{
test
"Node #10 should eventu
a
lly replicate node #5"
{
set port5
[
get_instance_attrib redis 5 port
]
set port5
[
get_instance_attrib redis 5 port
]
wait_for_condition 1000 50
{
wait_for_condition 1000 50
{
([
lindex
[
R 10 role
]
2
]
== $port5
)
&&
([
lindex
[
R 10 role
]
2
]
== $port5
)
&&
...
...
tests/integration/aof.tcl
View file @
f4c4a0fc
...
@@ -169,7 +169,7 @@ tags {"aof"} {
...
@@ -169,7 +169,7 @@ tags {"aof"} {
assert_equal 1
[
is_alive $srv
]
assert_equal 1
[
is_alive $srv
]
}
}
test
"Fixed AOF: Keyspace should contain values that were parsable"
{
test
"Fixed AOF: Keyspace should contain values that were pars
e
able"
{
set client
[
redis
[
dict get $srv host
]
[
dict get $srv port
]]
set client
[
redis
[
dict get $srv host
]
[
dict get $srv port
]]
wait_for_condition 50 100
{
wait_for_condition 50 100
{
[
catch
{
$client
ping
}
e
]
== 0
[
catch
{
$client
ping
}
e
]
== 0
...
...
tests/support/test.tcl
View file @
f4c4a0fc
...
@@ -29,7 +29,7 @@ proc assert_error {pattern code} {
...
@@ -29,7 +29,7 @@ proc assert_error {pattern code} {
if
{[
catch
{
uplevel 1 $code
}
error
]}
{
if
{[
catch
{
uplevel 1 $code
}
error
]}
{
assert_match $pattern $error
assert_match $pattern $error
}
else
{
}
else
{
error
"assertion:Expected an error but nothing was ca
tched
"
error
"assertion:Expected an error but nothing was ca
ught
"
}
}
}
}
...
...
tests/unit/basic.tcl
View file @
f4c4a0fc
...
@@ -83,7 +83,7 @@ start_server {tags {"basic"}} {
...
@@ -83,7 +83,7 @@ start_server {tags {"basic"}} {
for
{
set x 9999
}
{
$x
>= 0
}
{
incr x -1
}
{
for
{
set x 9999
}
{
$x
>= 0
}
{
incr x -1
}
{
set val
[
r get $x
]
set val
[
r get $x
]
if
{
$val
ne $x
}
{
if
{
$val
ne $x
}
{
set err
"Ele
e
mnt at position
$x
is
$val
instead of
$x
"
set err
"Elem
e
nt at position
$x
is
$val
instead of
$x
"
break
break
}
}
}
}
...
...
tests/unit/sort.tcl
View file @
f4c4a0fc
...
@@ -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 iss
u
e 224)"
{
r flushdb
r flushdb
r sort foo store bar
r sort foo store bar
}
{
0
}
}
{
0
}
...
...
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