aboutsummaryrefslogtreecommitdiff
path: root/src/transport/test_plugin_transport.c
diff options
context:
space:
mode:
authorgrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2009-11-05 08:29:25 +0000
committergrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2009-11-05 08:29:25 +0000
commit9ebc900c578acc3b4a887052fdfb1f6d81f19916 (patch)
tree9e7b7055bb8a312be254b0979a273ba3d37cc811 /src/transport/test_plugin_transport.c
parent5da66b49aa17245d9a6e0499148c04d7737806a7 (diff)
removing old comments
git-svn-id: https://gnunet.org/svn/gnunet@9404 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/transport/test_plugin_transport.c')
-rw-r--r--src/transport/test_plugin_transport.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/src/transport/test_plugin_transport.c b/src/transport/test_plugin_transport.c
index c90ab39ad8..2cca79cb06 100644
--- a/src/transport/test_plugin_transport.c
+++ b/src/transport/test_plugin_transport.c
@@ -164,9 +164,6 @@ validation_notification (void *cls,
uint32_t challenge,
const char *sender_addr)
{
- /* Sailor: 'test_validation' should get here
- if the validation worked; so we cancel the
- "delayed" task that will cause failure */
if (validation_timeout_task != GNUNET_SCHEDULER_NO_TASK)
{
GNUNET_SCHEDULER_cancel (sched, validation_timeout_task);
@@ -175,8 +172,6 @@ validation_notification (void *cls,
GNUNET_assert (challenge == 42);
- /* Sailor: if this is the last test, calling this function
- here will end the process. */
ok = 0; /* if the last test succeeded, report success */
GNUNET_SCHEDULER_add_continuation (sched,
&unload_task,
@@ -222,11 +217,6 @@ test_validation ()
soaddr.sin_len = sizeof (soaddr);
#endif
soaddr.sin_family = AF_INET;
- /* Sailor: set this port to 2367 to see the
- testcase fail after 30s (because validation
- fails); obviously the test should be
- modified to test both successful and
- unsuccessful validation in the end... */
soaddr.sin_port = htons(2368 /* FIXME: get from config! */);
soaddr.sin_addr.s_addr = htonl (INADDR_LOOPBACK);
api->validate (api->cls,
@@ -329,18 +319,7 @@ run (void *cls,
/* FIXME: set some error code for main */
return;
}
- /* Sailor: if we had no real tests, we
- could call this function
- here to end the process; instead, I'll
- show how one could run a single test below.
- Note that the test is not particularly well-written,
- it just serves to illustrate (also,
- the "validation_notification" function above is
- part of the test.*/
- if (0)
- unload_plugins (NULL, cfg);
- else
- test_validation ();
+ test_validation ();
}