Result: should not include sleep in DataCallback Revert "just test"
This reverts commit 689a0df1d086555d01015b65d8594a8c72464e4e.
diff --git a/test/test_ccnx_wrapper.cc b/test/test_ccnx_wrapper.cc
index ac8890d..1cd1394 100644
--- a/test/test_ccnx_wrapper.cc
+++ b/test/test_ccnx_wrapper.cc
@@ -46,13 +46,6 @@
}
};
-void sleeping(string str) {
- for(int i = 0; i < 5; i++) {
- cout << "Every 5 seconds"<<endl;
- sleep(5);
- }
-}
-
BOOST_AUTO_TEST_CASE (CcnxWrapperTest)
{
@@ -88,14 +81,6 @@
BOOST_CHECK_EQUAL(foo.s_str1, name);
BOOST_CHECK_EQUAL(foo.s_str2, data);
- CcnxWrapper hc;
- boost::function<void (string)> func = sleeping;
- hc.setInterestFilter("/test", func);
-
- hb.sendInterest("/test/1", memberFunc);
- sleep(2);
- hb.sendInterest("/test/2", memberFunc);
- sleep(60);
}