projects
/
awesomized
/
libmemcached
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (parent:
bd8a989
)
tests: avoid cruelly slow ping call
author
Michael Wallner
<mike@php.net>
Mon, 13 Jan 2020 14:42:28 +0000
(15:42 +0100)
committer
Michael Wallner
<mike@php.net>
Mon, 13 Jan 2020 15:14:35 +0000
(16:14 +0100)
tests/libmemcached-1.0/parser.cc
patch
|
blob
|
history
diff --git
a/tests/libmemcached-1.0/parser.cc
b/tests/libmemcached-1.0/parser.cc
index 7e48760e77d9204ac34bb2626b835876ec96c487..d2be9a17208c044d4c67e89c8315e39349634ee7 100644
(file)
--- a/
tests/libmemcached-1.0/parser.cc
+++ b/
tests/libmemcached-1.0/parser.cc
@@
-737,9
+737,6
@@
test_return_t test_parse_socket(memcached_st *)
*/
test_return_t regression_bug_71231153_connect(memcached_st *)
{
*/
test_return_t regression_bug_71231153_connect(memcached_st *)
{
- if (libmemcached_util_ping("10.0.2.252", 0, NULL)) // If for whatever reason someone has a host at this address, skip
- return TEST_SKIPPED;
-
{ // Test the connect-timeout, on a bad host we should get MEMCACHED_CONNECTION_FAILURE
memcached_st *memc= memcached(test_literal_param("--SERVER=10.0.2.252 --CONNECT-TIMEOUT=0"));
test_true(memc);
{ // Test the connect-timeout, on a bad host we should get MEMCACHED_CONNECTION_FAILURE
memcached_st *memc= memcached(test_literal_param("--SERVER=10.0.2.252 --CONNECT-TIMEOUT=0"));
test_true(memc);
@@
-761,11
+758,6
@@
test_return_t regression_bug_71231153_connect(memcached_st *)
test_return_t regression_bug_71231153_poll(memcached_st *)
{
test_return_t regression_bug_71231153_poll(memcached_st *)
{
- if (libmemcached_util_ping("10.0.2.252", 0, NULL)) // If for whatever reason someone has a host at this address, skip
- {
- return TEST_SKIPPED;
- }
-
{ // Test the poll timeout, on a bad host we should get MEMCACHED_CONNECTION_FAILURE
memcached_st *memc= memcached(test_literal_param("--SERVER=10.0.2.252 --POLL-TIMEOUT=0"));
test_true(memc);
{ // Test the poll timeout, on a bad host we should get MEMCACHED_CONNECTION_FAILURE
memcached_st *memc= memcached(test_literal_param("--SERVER=10.0.2.252 --POLL-TIMEOUT=0"));
test_true(memc);