diff options
Diffstat (limited to 'tests/cluster')
-rw-r--r-- | tests/cluster/tests/17-diskless-load-swapdb.tcl | 10 | ||||
-rw-r--r-- | tests/cluster/tests/includes/init-tests.tcl | 1 |
2 files changed, 6 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" } diff --git a/tests/cluster/tests/includes/init-tests.tcl b/tests/cluster/tests/includes/init-tests.tcl index caedc13e2..b787962a8 100644 --- a/tests/cluster/tests/includes/init-tests.tcl +++ b/tests/cluster/tests/includes/init-tests.tcl @@ -41,6 +41,7 @@ test "Cluster nodes hard reset" { R $id config set cluster-slave-validity-factor 10 R $id config set loading-process-events-interval-bytes 2097152 R $id config set key-load-delay 0 + R $id config set repl-diskless-load disabled R $id config rewrite } } |