diff --git a/tests/integration/aof.tcl b/tests/integration/aof.tcl index 43fe89f9..e1e0d509 100644 --- a/tests/integration/aof.tcl +++ b/tests/integration/aof.tcl @@ -30,7 +30,7 @@ tags {"aof"} { append_to_aof [formatCommand set foo hello] } - start_server_aof [list dir $server_path] { + start_server_aof [list dir $server_path aof-load-truncated no] { test "Bad format: Server should have logged an error" { set pattern "*Bad file format reading the append only file*" set retry 10 @@ -55,7 +55,7 @@ tags {"aof"} { append_to_aof [formatCommand set bar world] } - start_server_aof [list dir $server_path] { + start_server_aof [list dir $server_path aof-load-truncated no] { test "Unfinished MULTI: Server should have logged an error" { set pattern "*Unexpected end of file reading the append only file*" set retry 10 @@ -79,7 +79,7 @@ tags {"aof"} { append_to_aof [string range [formatCommand set bar world] 0 end-1] } - start_server_aof [list dir $server_path] { + start_server_aof [list dir $server_path aof-load-truncated no] { test "Short read: Server should have logged an error" { set pattern "*Unexpected end of file reading the append only file*" set retry 10 @@ -111,7 +111,7 @@ tags {"aof"} { } ## Test that the server can be started using the truncated AOF - start_server_aof [list dir $server_path] { + start_server_aof [list dir $server_path aof-load-truncated no] { test "Fixed AOF: Server should have been started" { assert_equal 1 [is_alive $srv] } @@ -135,7 +135,7 @@ tags {"aof"} { append_to_aof [formatCommand spop set] } - start_server_aof [list dir $server_path] { + start_server_aof [list dir $server_path aof-load-truncated no] { test "AOF+SPOP: Server should have been started" { assert_equal 1 [is_alive $srv] } @@ -158,7 +158,7 @@ tags {"aof"} { append_to_aof [formatCommand rpush list bar] } - start_server_aof [list dir $server_path] { + start_server_aof [list dir $server_path aof-load-truncated no] { test "AOF+EXPIRE: Server should have been started" { assert_equal 1 [is_alive $srv] }