diff options
Diffstat (limited to 'tests/cluster/tests/17-diskless-load-swapdb.tcl')
-rw-r--r-- | tests/cluster/tests/17-diskless-load-swapdb.tcl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/cluster/tests/17-diskless-load-swapdb.tcl b/tests/cluster/tests/17-diskless-load-swapdb.tcl index b9bf01ecd..7a56ec783 100644 --- a/tests/cluster/tests/17-diskless-load-swapdb.tcl +++ b/tests/cluster/tests/17-diskless-load-swapdb.tcl @@ -1,4 +1,4 @@ -# Check replica can restore database backup correctly if fail to diskless load. +# Check that replica keys and keys to slots map are right after failing to diskless load using SWAPDB. source "../tests/includes/init-tests.tcl" @@ -14,7 +14,7 @@ test "Cluster is writable" { cluster_write_test 0 } -test "Right to restore backups when fail to diskless load " { +test "Main db not affected when fail to diskless load" { set master [Rn 0] set replica [Rn 1] set master_id 0 @@ -63,9 +63,9 @@ test "Right to restore backups when fail to diskless load " { restart_instance redis $replica_id $replica READONLY - # Start full sync, wait till after db is flushed (backed up) + # Start full sync, wait till after db started loading in background wait_for_condition 500 10 { - [s $replica_id loading] eq 1 + [s $replica_id async_loading] eq 1 } else { fail "Fail to full sync" } @@ -75,7 +75,7 @@ test "Right to restore backups when fail to diskless load " { # Start full sync, wait till the replica detects the disconnection wait_for_condition 500 10 { - [s $replica_id loading] eq 0 + [s $replica_id async_loading] eq 0 } else { fail "Fail to full sync" } |