diff options
Diffstat (limited to 'src/transport/test_transport_api_disconnect.c')
-rw-r--r-- | src/transport/test_transport_api_disconnect.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/transport/test_transport_api_disconnect.c b/src/transport/test_transport_api_disconnect.c index 68881fbe8..703de2a5b 100644 --- a/src/transport/test_transport_api_disconnect.c +++ b/src/transport/test_transport_api_disconnect.c | |||
@@ -401,11 +401,6 @@ main (int argc, char *argv[]) | |||
401 | int ret; | 401 | int ret; |
402 | int nat_res; | 402 | int nat_res; |
403 | 403 | ||
404 | tth = GNUNET_TRANSPORT_TESTING_init (); | ||
405 | |||
406 | GNUNET_TRANSPORT_TESTING_get_test_source_name (__FILE__, &test_source); | ||
407 | GNUNET_TRANSPORT_TESTING_get_test_plugin_name (argv[0], test_source, | ||
408 | &test_plugin); | ||
409 | GNUNET_TRANSPORT_TESTING_get_test_name (argv[0], &test_name); | 404 | GNUNET_TRANSPORT_TESTING_get_test_name (argv[0], &test_name); |
410 | 405 | ||
411 | GNUNET_log_setup (test_name, | 406 | GNUNET_log_setup (test_name, |
@@ -416,6 +411,12 @@ main (int argc, char *argv[]) | |||
416 | #endif | 411 | #endif |
417 | NULL); | 412 | NULL); |
418 | 413 | ||
414 | GNUNET_TRANSPORT_TESTING_get_test_source_name (__FILE__, &test_source); | ||
415 | GNUNET_TRANSPORT_TESTING_get_test_plugin_name (argv[0], test_source, | ||
416 | &test_plugin); | ||
417 | |||
418 | tth = GNUNET_TRANSPORT_TESTING_init (); | ||
419 | |||
419 | if ((strcmp (test_plugin, "tcp_nat") == 0) || | 420 | if ((strcmp (test_plugin, "tcp_nat") == 0) || |
420 | (strcmp (test_plugin, "udp_nat") == 0)) | 421 | (strcmp (test_plugin, "udp_nat") == 0)) |
421 | { | 422 | { |