projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
testing: parser
[m6w6/libmemcached]
/
test
/
tests
/
bin
/
memdump.cpp
diff --git
a/test/tests/bin/memdump.cpp
b/test/tests/bin/memdump.cpp
index 8e4d4537f47df0c68bdbc81b8d5671f0237e0572..e16f5e3e39dc6cd3668ff015dea9b5b23664c5d4 100644
(file)
--- a/
test/tests/bin/memdump.cpp
+++ b/
test/tests/bin/memdump.cpp
@@
-32,8
+32,7
@@
TEST_CASE("bin/memdump") {
MemcachedPtr memc;
LoneReturnMatcher test{*memc};
MemcachedPtr memc;
LoneReturnMatcher test{*memc};
- server.start();
- Retry{[&server] { return server.isListening(); }}();
+ REQUIRE(server.ensureListening());
auto port = get<int>(server.getSocketOrPort());
auto comm = "memdump --servers=localhost:" + to_string(port) + " ";
auto port = get<int>(server.getSocketOrPort());
auto comm = "memdump --servers=localhost:" + to_string(port) + " ";
@@
-57,7
+56,11
@@
TEST_CASE("bin/memdump") {
string output;
REQUIRE_FALSE(sh.run(comm + "-v", output));
string output;
REQUIRE_FALSE(sh.run(comm + "-v", output));
- REQUIRE_THAT(output, Contains("CONNECTION FAILURE") || Contains("SERVER HAS FAILED"));
+ REQUIRE_THAT(output,
+ Contains("CONNECTION FAILURE")
+ || Contains("SERVER HAS FAILED")
+ || Contains("SYSTEM ERROR")
+ || Contains("TIMEOUT OCCURRED"));
}
SECTION("empty") {
}
SECTION("empty") {