summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-09-08 09:31:00 +0200
committerantirez <antirez@gmail.com>2014-09-08 10:56:52 +0200
commit9f40c25a0848d502967ca124b48b3c87bbce0106 (patch)
tree5be38ec4f0c5191074a5710c24472e4a3728be94 /tests
parent31f79a46ffbf04d372cfc0ebfcc5578daf39c532 (diff)
downloadredis-9f40c25a0848d502967ca124b48b3c87bbce0106.tar.gz
AOF tests fixed turning aof-load-truncated to no.
When aof-load-truncated option was introduced, with a default of "yes", the past behavior of the server to abort with trunncated AOF changed, so we need to explicitly configure the tests to abort with truncated AOF by setting the option to no.
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/aof.tcl12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/integration/aof.tcl b/tests/integration/aof.tcl
index 43fe89f98..e1e0d509e 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]
}