From bb0b87bf4c34d550f5fa1679fd25279e3921a949 Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Sun, 24 Jun 2012 23:32:15 +0000 Subject: [PATCH] -test cleanup --- src/gns/test_gns_pseu_shorten.c | 2 +- src/gns/test_gns_simple_mx_lookup.c | 34 ++-------------------------- src/gns/test_gns_simple_srv_lookup.c | 9 +------- 3 files changed, 4 insertions(+), 41 deletions(-) diff --git a/src/gns/test_gns_pseu_shorten.c b/src/gns/test_gns_pseu_shorten.c index 293a20d37..560c5bb8a 100644 --- a/src/gns/test_gns_pseu_shorten.c +++ b/src/gns/test_gns_pseu_shorten.c @@ -37,7 +37,7 @@ #define VERBOSE GNUNET_YES /* Timeout for entire testcase */ -#define TIMEOUT GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 5) +#define TIMEOUT GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 30) /* If number of peers not in config file, use this number */ #define DEFAULT_NUM_PEERS 2 diff --git a/src/gns/test_gns_simple_mx_lookup.c b/src/gns/test_gns_simple_mx_lookup.c index e93a2ca0b..357c85797 100644 --- a/src/gns/test_gns_simple_mx_lookup.c +++ b/src/gns/test_gns_simple_mx_lookup.c @@ -93,11 +93,7 @@ static void on_lookup_result(void *cls, uint32_t rd_count, const struct GNUNET_NAMESTORE_RecordData *rd) { - struct in_addr a; int i; - char* addr; - int mx_found = 0; - int ip_found = 0; uint16_t mx_preference; char* mx; @@ -114,19 +110,7 @@ on_lookup_result(void *cls, uint32_t rd_count, for (i=0; i