projects
/
m6w6
/
libmemcached
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
6d8ae66
)
tests: fix flaky regression_bug_1251482 test
author
Michael Wallner
<mike@php.net>
Mon, 13 Jan 2020 15:29:08 +0000
(16:29 +0100)
committer
Michael Wallner
<mike@php.net>
Mon, 13 Jan 2020 15:29:22 +0000
(16:29 +0100)
tests/libmemcached-1.0/mem_functions.cc
patch
|
blob
|
history
diff --git
a/tests/libmemcached-1.0/mem_functions.cc
b/tests/libmemcached-1.0/mem_functions.cc
index 0d6d047db6823d166700e2fce474914fc8eda2ec..0e380b7a0cfa0e0845b10fd0f73ec6f170170e70 100644
(file)
--- a/
tests/libmemcached-1.0/mem_functions.cc
+++ b/
tests/libmemcached-1.0/mem_functions.cc
@@
-4848,7
+4848,7
@@
test_return_t regression_bug_1251482(memcached_st*)
memcached_behavior_set(&memc, MEMCACHED_BEHAVIOR_RETRY_TIMEOUT, 0);
- for (size_t x=
4; x; --
x)
+ for (size_t x=
0; x < 5; ++
x)
{
size_t value_length;
memcached_return_t rc;
@@
-4858,7
+4858,11
@@
test_return_t regression_bug_1251482(memcached_st*)
test_false(value);
test_compare(0LLU, value_length);
- test_compare(MEMCACHED_CONNECTION_FAILURE, rc);
+ if (x) {
+ test_ne_compare(MEMCACHED_SUCCESS, rc);
+ } else {
+ test_compare(MEMCACHED_CONNECTION_FAILURE, rc);
+ }
}
return TEST_SUCCESS;