Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
da33edbc
Commit
da33edbc
authored
Dec 13, 2011
by
antirez
Browse files
Merge remote-tracking branch 'origin/unstable' into unstable
parents
54ecc0e7
954cc9d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/integration/aof.tcl
View file @
da33edbc
...
...
@@ -32,8 +32,19 @@ tags {"aof"} {
start_server_aof
[
list dir $server_path
]
{
test
"Unfinished MULTI: Server should have logged an error"
{
set result
[
exec cat
[
dict get $srv stdout
]
| tail -n1
]
assert_match
"*Unexpected end of file reading the append only file*"
$result
set pattern
"*Unexpected end of file reading the append only file*"
set retry 10
while
{
$retry
}
{
set result
[
exec cat
[
dict get $srv stdout
]
| tail -n1
]
if
{[
string match $pattern $result
]}
{
break
}
incr retry -1
after 1000
}
if
{
$retry
== 0
}
{
error
"assertion:expected error not found on config file"
}
}
}
...
...
@@ -45,8 +56,19 @@ tags {"aof"} {
start_server_aof
[
list dir $server_path
]
{
test
"Short read: Server should have logged an error"
{
set result
[
exec cat
[
dict get $srv stdout
]
| tail -n1
]
assert_match
"*Bad file format reading the append only file*"
$result
set pattern
"*Bad file format reading the append only file*"
set retry 10
while
{
$retry
}
{
set result
[
exec cat
[
dict get $srv stdout
]
| tail -n1
]
if
{[
string match $pattern $result
]}
{
break
}
incr retry -1
after 1000
}
if
{
$retry
== 0
}
{
error
"assertion:expected error not found on config file"
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment