From 09cb281bc327078dc2c71163f4cb7cb5a7e3ae2c Mon Sep 17 00:00:00 2001 From: Matt Stancliff Date: Thu, 31 Jul 2014 14:33:50 -0400 Subject: [PATCH] Fix spelling in some test cases --- tests/cluster/tests/05-slave-selection.tcl | 2 +- tests/integration/aof.tcl | 2 +- tests/support/test.tcl | 2 +- tests/unit/basic.tcl | 2 +- tests/unit/sort.tcl | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/cluster/tests/05-slave-selection.tcl b/tests/cluster/tests/05-slave-selection.tcl index 4167d64b..6efedce5 100644 --- a/tests/cluster/tests/05-slave-selection.tcl +++ b/tests/cluster/tests/05-slave-selection.tcl @@ -83,7 +83,7 @@ test "Cluster should eventually be up again" { assert_cluster_state ok } -test "Node #10 should eventaully replicate node #5" { +test "Node #10 should eventually replicate node #5" { set port5 [get_instance_attrib redis 5 port] wait_for_condition 1000 50 { ([lindex [R 10 role] 2] == $port5) && diff --git a/tests/integration/aof.tcl b/tests/integration/aof.tcl index 4003550d..7ea70943 100644 --- a/tests/integration/aof.tcl +++ b/tests/integration/aof.tcl @@ -169,7 +169,7 @@ tags {"aof"} { 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 parseable" { set client [redis [dict get $srv host] [dict get $srv port]] wait_for_condition 50 100 { [catch {$client ping} e] == 0 diff --git a/tests/support/test.tcl b/tests/support/test.tcl index bf2cb0e2..7d390cc4 100644 --- a/tests/support/test.tcl +++ b/tests/support/test.tcl @@ -29,7 +29,7 @@ proc assert_error {pattern code} { if {[catch {uplevel 1 $code} error]} { assert_match $pattern $error } else { - error "assertion:Expected an error but nothing was catched" + error "assertion:Expected an error but nothing was caught" } } diff --git a/tests/unit/basic.tcl b/tests/unit/basic.tcl index 11037608..e3680a4f 100644 --- a/tests/unit/basic.tcl +++ b/tests/unit/basic.tcl @@ -83,7 +83,7 @@ start_server {tags {"basic"}} { for {set x 9999} {$x >= 0} {incr x -1} { set val [r get $x] if {$val ne $x} { - set err "Eleemnt at position $x is $val instead of $x" + set err "Element at position $x is $val instead of $x" break } } diff --git a/tests/unit/sort.tcl b/tests/unit/sort.tcl index 54b0cc7e..490158f1 100644 --- a/tests/unit/sort.tcl +++ b/tests/unit/sort.tcl @@ -187,7 +187,7 @@ start_server { 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 sort foo store bar } {0}