Skip to content

Commit

Permalink
Test availability_zone in the HELLO response
Browse files Browse the repository at this point in the history
Signed-off-by: Rueian <[email protected]>
  • Loading branch information
rueian committed Dec 26, 2024
1 parent 52d314c commit f71b1bc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/unit/tracking.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,20 @@ start_server {tags {"tracking network logreqres:skip"}} {
r HELLO 3
}

test {HELLO with availability-zone} {
r CONFIG SET availability-zone myzone

set reply [r HELLO 3]
assert_equal [dict get $reply availability_zone] myzone

set reply [r HELLO 2]
assert_equal [dict get $reply availability_zone] myzone

# restore for next test
r HELLO 3
r CONFIG SET availability-zone ""
}

test {RESP3 based basic invalidation} {
r CLIENT TRACKING off
r CLIENT TRACKING on
Expand Down

0 comments on commit f71b1bc

Please sign in to comment.