aboutsummaryrefslogtreecommitdiff
path: root/src/testing/test_testing_topology_blacklist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/test_testing_topology_blacklist.c')
-rw-r--r--src/testing/test_testing_topology_blacklist.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/testing/test_testing_topology_blacklist.c b/src/testing/test_testing_topology_blacklist.c
index 046cb2ca5..d53fc8cbe 100644
--- a/src/testing/test_testing_topology_blacklist.c
+++ b/src/testing/test_testing_topology_blacklist.c
@@ -390,7 +390,6 @@ run (void *cls, char *const *args, const char *cfgfile,
390 unsigned long long connect_topology_num; 390 unsigned long long connect_topology_num;
391 unsigned long long blacklist_topology_num; 391 unsigned long long blacklist_topology_num;
392 unsigned long long connect_topology_option_num; 392 unsigned long long connect_topology_option_num;
393 unsigned long long temp_connect;
394 char *connect_topology_option_modifier_string; 393 char *connect_topology_option_modifier_string;
395 394
396 ok = 1; 395 ok = 1;
@@ -485,15 +484,12 @@ run (void *cls, char *const *args, const char *cfgfile,
485 &num_peers)) 484 &num_peers))
486 num_peers = DEFAULT_NUM_PEERS; 485 num_peers = DEFAULT_NUM_PEERS;
487 486
488 if (GNUNET_OK == 487 if (GNUNET_OK !=
489 GNUNET_CONFIGURATION_get_value_number (cfg, "testing", "connect_timeout", 488 GNUNET_CONFIGURATION_get_value_time (cfg, "testing", "CONNECT_TIMEOUT",
490 &temp_connect)) 489 &connect_timeout))
491 connect_timeout =
492 GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, temp_connect);
493 else
494 { 490 {
495 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Must provide option %s:%s!\n", 491 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Must provide option %s:%s!\n",
496 "testing", "connect_timeout"); 492 "testing", "CONNECT_TIMEOUT");
497 return; 493 return;
498 } 494 }
499 495