From: Matthias Wachs Date: Thu, 26 Sep 2013 12:26:23 +0000 (+0000) Subject: fixed test X-Git-Tag: initial-import-from-subversion-38251~7050 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=962b698c8f339b8d8187278941a537e9fc4c9ad7;p=oweals%2Fgnunet.git fixed test --- diff --git a/src/ats/test_ats_solver_request_and_add_address.c b/src/ats/test_ats_solver_request_and_add_address.c index e9aa03e55..a78b98aab 100644 --- a/src/ats/test_ats_solver_request_and_add_address.c +++ b/src/ats/test_ats_solver_request_and_add_address.c @@ -177,8 +177,6 @@ run (void *cls, const struct GNUNET_CONFIGURATION_Handle *mycfg, GNUNET_SCHEDULER_add_now (&end_badly, NULL); return; } - /* Request */ - GNUNET_ATS_suggest_address (sched_ats, &p.id); /* Set up peer */ if (GNUNET_SYSERR == GNUNET_CRYPTO_hash_from_string(PEERID0, &p.id.hashPubKey)) @@ -207,6 +205,10 @@ run (void *cls, const struct GNUNET_CONFIGURATION_Handle *mycfg, test_hello_address.address = test_addr.addr; test_hello_address.address_length = test_addr.addr_len; + /* Request */ + GNUNET_ATS_suggest_address (sched_ats, &p.id); + + /* Adding address */ GNUNET_ATS_address_add (sched_ats, &test_hello_address, NULL, test_ats_info, test_ats_count); }