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
/
memcp.cpp
diff --git
a/test/tests/bin/memcp.cpp
b/test/tests/bin/memcp.cpp
index bbf796a6156ad538f47189516f2384e84d72f3ba..83fe974969b25d1debc975a36833415b7f513c9b 100644
(file)
--- a/
test/tests/bin/memcp.cpp
+++ b/
test/tests/bin/memcp.cpp
@@
-32,8
+32,7
@@
TEST_CASE("bin/memcp") {
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 = "memcp --servers=localhost:" + to_string(port) + " ";
auto port = get<int>(server.getSocketOrPort());
auto comm = "memcp --servers=localhost:" + to_string(port) + " ";
@@
-64,7
+63,11
@@
TEST_CASE("bin/memcp") {
string output;
REQUIRE_FALSE(sh.run(comm + temp.getFn(), output));
string output;
REQUIRE_FALSE(sh.run(comm + temp.getFn(), output));
- REQUIRE_THAT(output, Contains("CONNECTION FAILURE"));
+ REQUIRE_THAT(output,
+ Contains("CONNECTION FAILURE")
+ || Contains("SERVER HAS FAILED")
+ || Contains("SYSTEM ERROR")
+ || Contains("TIMEOUT OCCURRED"));
}
SECTION("file not found") {
}
SECTION("file not found") {