adapt to Controller::CommandFailCallback with ControlResponse
refs #3739
Change-Id: I193fb11fd96bd91808fc6e3af22a8da2511246e2
diff --git a/tests/utility/test-face-controller.cpp b/tests/utility/test-face-controller.cpp
index 9104bb8..fe6ef51 100644
--- a/tests/utility/test-face-controller.cpp
+++ b/tests/utility/test-face-controller.cpp
@@ -47,9 +47,9 @@
}
void
- onFailure(uint32_t code, const std::string& reason)
+ onFailure(const ndn::nfd::ControlResponse& response)
{
- BOOST_CHECK_EQUAL(code, 408);
+ BOOST_CHECK_EQUAL(response.getCode(), 408);
}
public:
@@ -85,7 +85,7 @@
{
faceController.createFace("invalid://256.0.0.1:6363",
nullptr,
- bind(&FaceControllerFixture::onFailure, this, _1, _2));
+ bind(&FaceControllerFixture::onFailure, this, _1));
face->processEvents(ndn::time::milliseconds(1));