summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-09-08 09:31:00 +0200
committerantirez <antirez@gmail.com>2014-09-08 09:31:06 +0200
commitc5d4a780f575c9c5e0d0a042780e49b65c2feda7 (patch)
tree5be38ec4f0c5191074a5710c24472e4a3728be94
parent39271212ba8144c39d86622b3eb3bb8d1ee4acb4 (diff)
downloadredis-aofeof.tar.gz
AOF tests fixed turning aof-load-truncated to no.aofeof
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.
-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]
}