mgmt+face: move protocol-specific face creation checks into protocol factories
Also brought implementation of faces/create in line with design
refs #3731
Change-Id: I4f48079136b42c7fdbd4fdfba37116d2565f9dc1
diff --git a/tests/daemon/face/tcp-channel.t.cpp b/tests/daemon/face/tcp-channel.t.cpp
index f829aa2..d04ea26 100644
--- a/tests/daemon/face/tcp-channel.t.cpp
+++ b/tests/daemon/face/tcp-channel.t.cpp
@@ -27,7 +27,7 @@
#include "test-ip.hpp"
#include "tests/limited-io.hpp"
-#include "tests/test-common.hpp"
+#include "factory-test-common.hpp"
#include <boost/mpl/vector.hpp>
@@ -71,10 +71,7 @@
listenerFaces.push_back(newFace);
limitedIo.afterOp();
},
- [this] (const std::string& reason) {
- BOOST_FAIL(reason);
- limitedIo.afterOp();
- });
+ &failIfError);
}
void
@@ -87,10 +84,7 @@
clientFaces.push_back(newFace);
limitedIo.afterOp();
},
- [this] (const std::string& reason) {
- BOOST_FAIL(reason);
- limitedIo.afterOp();
- });
+ &failIfError);
}
protected:
@@ -188,7 +182,7 @@
BOOST_FAIL("Connect succeeded when it should have failed");
this->limitedIo.afterOp();
},
- [this] (const std::string& reason) {
+ [this] (uint32_t status, const std::string& reason) {
BOOST_CHECK_EQUAL(reason.empty(), false);
this->limitedIo.afterOp();
},