libt2n: (gerd) add connect timeout
[libt2n] / test / comm.cpp
index 6044693..eb4de8c 100644 (file)
@@ -173,7 +173,7 @@ class test_comm : public TestFixture
             {
                 // wait till server is up
                 sleep(1);
-                socket_client_connection sc("localhost",6666,socket_client_connection::max_retries_default);
+                socket_client_connection sc(6666);
                 sc.write("hello");
                 // don't call atexit and stuff
                 _exit(0);
@@ -246,7 +246,7 @@ class test_comm : public TestFixture
 
                 // wait till server is up
                 sleep(1);
-                socket_client_connection sc("localhost",6666,socket_client_connection::max_retries_default);
+                socket_client_connection sc(6666);
                 sc.write("ABC");
 
                 sc.fill_buffer(1000000);