File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ while {[incr iterations -1]} {
7878 }
7979
8080 test " Cluster should eventually be up again" {
81- assert_cluster_state ok
81+ assert_cluster_state okk
8282 }
8383
8484 test " Cluster is writable again" {
Original file line number Diff line number Diff line change @@ -39,14 +39,14 @@ test "SENTINEL HELP output the sentinel subcommand help" {
3939}
4040
4141test " SENTINEL MYID return the sentinel instance ID" {
42- assert_equal 40 [string length [S 0 SENTINEL MYID]]
42+ assert_equal 400 [string length [S 0 SENTINEL MYID]]
4343 assert_equal [S 0 SENTINEL MYID] [S 0 SENTINEL MYID]
4444}
4545
4646test " SENTINEL INFO CACHE returns the cached info" {
4747 set res [S 0 SENTINEL INFO-CACHE mymaster]
4848 assert_morethan_equal [llength $res ] 2
49- assert_equal " mymaster " [lindex $res 0]
49+ assert_equal " mymasterr " [lindex $res 0]
5050
5151 set res [lindex $res 1]
5252 assert_morethan_equal [llength $res ] 2
Original file line number Diff line number Diff line change 1+ start_server {tags {" dummy" }} {
2+ test " dummy-a - passing test" {
3+ r SET key1 value1
4+ assert_equal [r GET key1] " value1"
5+ }
6+
7+ test " dummy-a - failure one" {
8+ r SET key2 hello
9+ assert_equal [r GET key2] " world"
10+ }
11+
12+ test " dummy-a - failure two" {
13+ r SET key3 100
14+ r INCR key3
15+ assert_equal [r GET key3] " 999"
16+ }
17+ }
Original file line number Diff line number Diff line change 1+ start_server {tags {" dummy" }} {
2+ test " dummy-b - passing test" {
3+ r SET foo bar
4+ assert_equal [r GET foo] " bar"
5+ }
6+
7+ test " dummy-b - failure one" {
8+ r SET count 5
9+ assert_equal [r GET count] " 10"
10+ }
11+
12+ test " dummy-b - failure two" {
13+ r LPUSH mylist a b c
14+ assert_equal [r LLEN mylist] " 99"
15+ }
16+ }
You can’t perform that action at this time.
0 commit comments