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
c07e16fa
Unverified
Commit
c07e16fa
authored
Apr 13, 2021
by
Oran Agra
Committed by
GitHub
Apr 13, 2021
Browse files
Add more attempts to a timing sensitive test (#8770)
parent
38da8d07
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/unit/expire.tcl
View file @
c07e16fa
...
...
@@ -76,7 +76,7 @@ start_server {tags {"expire"}} {
# This test is very likely to do a false positive if the
# server is under pressure, so if it does not work give it a few more
# chances.
for
{
set j 0
}
{
$j
<
3
}
{
incr j
}
{
for
{
set j 0
}
{
$j
<
10
}
{
incr j
}
{
r del x
r setex x 1 somevalue
after 900
...
...
@@ -85,6 +85,9 @@ start_server {tags {"expire"}} {
set b
[
r get x
]
if
{
$a
eq
{
somevalue
}
&& $b eq
{}}
break
}
if
{
$::verbose
}
{
puts
"millisecond expire test attempts:
$j
"
}
list $a $b
}
{
somevalue
{}}
...
...
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