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
37dc2f13
Unverified
Commit
37dc2f13
authored
Oct 26, 2021
by
Wang Yuan
Committed by
GitHub
Oct 26, 2021
Browse files
Fix not waiting for data loading to complete in AOF tests (#9683)
Fix timing issue of a new test introduced in #9326
parent
43b22f17
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/integration/aof.tcl
View file @
37dc2f13
...
...
@@ -444,6 +444,7 @@ tags {"aof external:skip"} {
start_server_aof
[
list dir $server_path
]
{
test
{
Successfully load AOF which has timestamp annotations inside
}
{
set c
[
redis
[
dict get $srv host
]
[
dict get $srv port
]
0 $::tls
]
wait_done_loading $c
assert_equal
"bar1"
[
$c
get foo1
]
assert_equal
"bar2"
[
$c
get foo2
]
assert_equal
"bar3"
[
$c
get foo3
]
...
...
@@ -455,6 +456,7 @@ tags {"aof external:skip"} {
exec src/redis-check-aof --truncate-to-timestamp 1628217473 $aof_path
start_server_aof
[
list dir $server_path
]
{
set c
[
redis
[
dict get $srv host
]
[
dict get $srv port
]
0 $::tls
]
wait_done_loading $c
assert_equal
"bar1"
[
$c
get foo1
]
assert_equal
"bar2"
[
$c
get foo2
]
assert_equal
"bar3"
[
$c
get foo3
]
...
...
@@ -464,6 +466,7 @@ tags {"aof external:skip"} {
exec src/redis-check-aof --truncate-to-timestamp 1628217471 $aof_path
start_server_aof
[
list dir $server_path
]
{
set c
[
redis
[
dict get $srv host
]
[
dict get $srv port
]
0 $::tls
]
wait_done_loading $c
assert_equal
"bar1"
[
$c
get foo1
]
assert_equal
"bar2"
[
$c
get foo2
]
assert_equal
""
[
$c
get foo3
]
...
...
@@ -473,6 +476,7 @@ tags {"aof external:skip"} {
exec src/redis-check-aof --truncate-to-timestamp 1628217470 $aof_path
start_server_aof
[
list dir $server_path
]
{
set c
[
redis
[
dict get $srv host
]
[
dict get $srv port
]
0 $::tls
]
wait_done_loading $c
assert_equal
"bar1"
[
$c
get foo1
]
assert_equal
""
[
$c
get foo2
]
}
...
...
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