diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-11-05 08:29:25 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-11-05 08:29:25 +0000 |
commit | 98428e91dd5a9cd97ad9fa4599ab2fd20b0b9244 (patch) | |
tree | 9e7b7055bb8a312be254b0979a273ba3d37cc811 /src | |
parent | ad9f3d642d3ece5b872ca6c43e9ac9f54146b4f2 (diff) | |
download | gnunet-98428e91dd5a9cd97ad9fa4599ab2fd20b0b9244.tar.gz gnunet-98428e91dd5a9cd97ad9fa4599ab2fd20b0b9244.zip |
removing old comments
Diffstat (limited to 'src')
-rw-r--r-- | src/transport/test_plugin_transport.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/src/transport/test_plugin_transport.c b/src/transport/test_plugin_transport.c index c90ab39ad..2cca79cb0 100644 --- a/src/transport/test_plugin_transport.c +++ b/src/transport/test_plugin_transport.c | |||
@@ -164,9 +164,6 @@ validation_notification (void *cls, | |||
164 | uint32_t challenge, | 164 | uint32_t challenge, |
165 | const char *sender_addr) | 165 | const char *sender_addr) |
166 | { | 166 | { |
167 | /* Sailor: 'test_validation' should get here | ||
168 | if the validation worked; so we cancel the | ||
169 | "delayed" task that will cause failure */ | ||
170 | if (validation_timeout_task != GNUNET_SCHEDULER_NO_TASK) | 167 | if (validation_timeout_task != GNUNET_SCHEDULER_NO_TASK) |
171 | { | 168 | { |
172 | GNUNET_SCHEDULER_cancel (sched, validation_timeout_task); | 169 | GNUNET_SCHEDULER_cancel (sched, validation_timeout_task); |
@@ -175,8 +172,6 @@ validation_notification (void *cls, | |||
175 | 172 | ||
176 | GNUNET_assert (challenge == 42); | 173 | GNUNET_assert (challenge == 42); |
177 | 174 | ||
178 | /* Sailor: if this is the last test, calling this function | ||
179 | here will end the process. */ | ||
180 | ok = 0; /* if the last test succeeded, report success */ | 175 | ok = 0; /* if the last test succeeded, report success */ |
181 | GNUNET_SCHEDULER_add_continuation (sched, | 176 | GNUNET_SCHEDULER_add_continuation (sched, |
182 | &unload_task, | 177 | &unload_task, |
@@ -222,11 +217,6 @@ test_validation () | |||
222 | soaddr.sin_len = sizeof (soaddr); | 217 | soaddr.sin_len = sizeof (soaddr); |
223 | #endif | 218 | #endif |
224 | soaddr.sin_family = AF_INET; | 219 | soaddr.sin_family = AF_INET; |
225 | /* Sailor: set this port to 2367 to see the | ||
226 | testcase fail after 30s (because validation | ||
227 | fails); obviously the test should be | ||
228 | modified to test both successful and | ||
229 | unsuccessful validation in the end... */ | ||
230 | soaddr.sin_port = htons(2368 /* FIXME: get from config! */); | 220 | soaddr.sin_port = htons(2368 /* FIXME: get from config! */); |
231 | soaddr.sin_addr.s_addr = htonl (INADDR_LOOPBACK); | 221 | soaddr.sin_addr.s_addr = htonl (INADDR_LOOPBACK); |
232 | api->validate (api->cls, | 222 | api->validate (api->cls, |
@@ -329,18 +319,7 @@ run (void *cls, | |||
329 | /* FIXME: set some error code for main */ | 319 | /* FIXME: set some error code for main */ |
330 | return; | 320 | return; |
331 | } | 321 | } |
332 | /* Sailor: if we had no real tests, we | 322 | test_validation (); |
333 | could call this function | ||
334 | here to end the process; instead, I'll | ||
335 | show how one could run a single test below. | ||
336 | Note that the test is not particularly well-written, | ||
337 | it just serves to illustrate (also, | ||
338 | the "validation_notification" function above is | ||
339 | part of the test.*/ | ||
340 | if (0) | ||
341 | unload_plugins (NULL, cfg); | ||
342 | else | ||
343 | test_validation (); | ||
344 | } | 323 | } |
345 | 324 | ||
346 | 325 | ||