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/udp-channel.t.cpp b/tests/daemon/face/udp-channel.t.cpp
index d945012..1438b88 100644
--- a/tests/daemon/face/udp-channel.t.cpp
+++ b/tests/daemon/face/udp-channel.t.cpp
@@ -28,7 +28,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>
@@ -72,9 +72,7 @@
listenerFaces.push_back(newFace);
limitedIo.afterOp();
},
- [] (const std::string& reason) {
- BOOST_FAIL(reason);
- });
+ &failIfError);
}
void
@@ -90,9 +88,7 @@
newFace->getTransport()->send(std::move(pkt));
limitedIo.afterOp();
},
- [] (const std::string& reason) {
- BOOST_FAIL(reason);
- });
+ &failIfError);
});
}