diff options
Diffstat (limited to 'src/util/test_connection_timeout_no_connect.c')
-rw-r--r-- | src/util/test_connection_timeout_no_connect.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/util/test_connection_timeout_no_connect.c b/src/util/test_connection_timeout_no_connect.c index ea4a32412..2e8f9be2e 100644 --- a/src/util/test_connection_timeout_no_connect.c +++ b/src/util/test_connection_timeout_no_connect.c | |||
@@ -57,8 +57,7 @@ task_timeout (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
57 | csock = GNUNET_CONNECTION_create_from_connect (cfg, "localhost", PORT); | 57 | csock = GNUNET_CONNECTION_create_from_connect (cfg, "localhost", PORT); |
58 | GNUNET_assert (csock != NULL); | 58 | GNUNET_assert (csock != NULL); |
59 | GNUNET_assert (NULL != | 59 | GNUNET_assert (NULL != |
60 | GNUNET_CONNECTION_notify_transmit_ready (csock, | 60 | GNUNET_CONNECTION_notify_transmit_ready (csock, 1024, |
61 | 1024, | ||
62 | GNUNET_TIME_UNIT_SECONDS, | 61 | GNUNET_TIME_UNIT_SECONDS, |
63 | &handle_timeout, | 62 | &handle_timeout, |
64 | cls)); | 63 | cls)); |
@@ -76,8 +75,8 @@ check_timeout () | |||
76 | 75 | ||
77 | ok = 1; | 76 | ok = 1; |
78 | cfg = GNUNET_CONFIGURATION_create (); | 77 | cfg = GNUNET_CONFIGURATION_create (); |
79 | GNUNET_CONFIGURATION_set_value_string (cfg, | 78 | GNUNET_CONFIGURATION_set_value_string (cfg, "resolver", "HOSTNAME", |
80 | "resolver", "HOSTNAME", "localhost"); | 79 | "localhost"); |
81 | GNUNET_SCHEDULER_run (&task_timeout, &ok); | 80 | GNUNET_SCHEDULER_run (&task_timeout, &ok); |
82 | GNUNET_CONFIGURATION_destroy (cfg); | 81 | GNUNET_CONFIGURATION_destroy (cfg); |
83 | return ok; | 82 | return ok; |