Skip to content

Commit bdf052b

Browse files
committed
Added dummy changes to the files
Signed-off-by: Hanxi Zhang <hanxizh@amazon.com>
1 parent ad39c2b commit bdf052b

4 files changed

Lines changed: 36 additions & 3 deletions

File tree

tests/cluster/tests/03-failover-loop.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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" {

tests/sentinel/tests/00-base.tcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ test "SENTINEL HELP output the sentinel subcommand help" {
3939
}
4040

4141
test "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

4646
test "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

tests/unit/dummy-test-a.tcl

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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+
}

tests/unit/dummy-test-b.tcl

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
}

0 commit comments

Comments
 (0)