BUG: handling of the transaction log was totally wrong, though easily solved
diff --git a/test/test_app_socket.cc b/test/test_app_socket.cc
index 4773c36..bf7db83 100644
--- a/test/test_app_socket.cc
+++ b/test/test_app_socket.cc
@@ -38,12 +38,13 @@
using namespace std;
using namespace boost;
-INIT_LOGGER ("Test::AppSocket");
+INIT_LOGGER ("Test.AppSocket");
class TestSocketApp {
public:
map<string, string> data;
void set(string str1, string str2) {
+ _LOG_FUNCTION (this << ", " << str1);
data.insert(make_pair(str1, str2));
// cout << str1 << ", " << str2 << endl;
}
@@ -102,13 +103,14 @@
s1.publish (p1, 0, data1, 10);
_LOG_DEBUG ("s1 publish");
s1.publish (p1, 0, data2, 10);
- this_thread::sleep (posix_time::milliseconds (1000));
-
+ this_thread::sleep (posix_time::milliseconds (100));
+
+ _LOG_DEBUG ("testing");
// // // from code logic, we won't be fetching our own data
- // a1.set(p1 + "/0/1", data1);
- // a1.set(p1 + "/0/2", data2);
- // BOOST_CHECK_EQUAL(a1.toString(), a2.toString());
- // // BOOST_CHECK_EQUAL(a2.toString(), a3.toString());
+ a1.set(p1 + "/0/1", data1);
+ a1.set(p1 + "/0/2", data2);
+ BOOST_CHECK_EQUAL(a1.toString(), a2.toString());
+ BOOST_CHECK_EQUAL(a2.toString(), a3.toString());
// // another single source
// // string data3 = "You surf the Internet, I surf the real world";