aboutsummaryrefslogtreecommitdiff
path: root/src/util/test_connection_timeout.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/test_connection_timeout.c')
-rw-r--r--src/util/test_connection_timeout.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/util/test_connection_timeout.c b/src/util/test_connection_timeout.c
index 3989d654a..2338665cb 100644
--- a/src/util/test_connection_timeout.c
+++ b/src/util/test_connection_timeout.c
@@ -94,8 +94,7 @@ send_kilo (void *cls, size_t size, void *buf)
94 memset (buf, 42, 1024); 94 memset (buf, 42, 1024);
95 95
96 GNUNET_assert (NULL != 96 GNUNET_assert (NULL !=
97 GNUNET_CONNECTION_notify_transmit_ready (csock, 97 GNUNET_CONNECTION_notify_transmit_ready (csock, 1024,
98 1024,
99 GNUNET_TIME_UNIT_SECONDS, 98 GNUNET_TIME_UNIT_SECONDS,
100 &send_kilo, cls)); 99 &send_kilo, cls));
101 return 1024; 100 return 1024;
@@ -112,8 +111,7 @@ task_timeout (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
112 csock = GNUNET_CONNECTION_create_from_connect (cfg, "localhost", PORT); 111 csock = GNUNET_CONNECTION_create_from_connect (cfg, "localhost", PORT);
113 GNUNET_assert (csock != NULL); 112 GNUNET_assert (csock != NULL);
114 GNUNET_assert (NULL != 113 GNUNET_assert (NULL !=
115 GNUNET_CONNECTION_notify_transmit_ready (csock, 114 GNUNET_CONNECTION_notify_transmit_ready (csock, 1024,
116 1024,
117 GNUNET_TIME_UNIT_SECONDS, 115 GNUNET_TIME_UNIT_SECONDS,
118 &send_kilo, cls)); 116 &send_kilo, cls));
119} 117}
@@ -130,8 +128,8 @@ check_timeout ()
130 128
131 ok = 1; 129 ok = 1;
132 cfg = GNUNET_CONFIGURATION_create (); 130 cfg = GNUNET_CONFIGURATION_create ();
133 GNUNET_CONFIGURATION_set_value_string (cfg, 131 GNUNET_CONFIGURATION_set_value_string (cfg, "resolver", "HOSTNAME",
134 "resolver", "HOSTNAME", "localhost"); 132 "localhost");
135 GNUNET_SCHEDULER_run (&task_timeout, &ok); 133 GNUNET_SCHEDULER_run (&task_timeout, &ok);
136 GNUNET_CONFIGURATION_destroy (cfg); 134 GNUNET_CONFIGURATION_destroy (cfg);
137 return ok; 135 return ok;