summaryrefslogtreecommitdiff
path: root/auto_tests/dht_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'auto_tests/dht_test.c')
-rw-r--r--auto_tests/dht_test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/auto_tests/dht_test.c b/auto_tests/dht_test.c
index 6d3f11ac..369356b5 100644
--- a/auto_tests/dht_test.c
+++ b/auto_tests/dht_test.c
@@ -288,10 +288,10 @@ void test_addto_lists_good(DHT *dht,
288#if 0 288#if 0
289static void test_addto_lists(IP ip) 289static void test_addto_lists(IP ip)
290{ 290{
291 Networking_Core *net = new_networking(ip, TOX_PORT_DEFAULT); 291 Networking_Core *net = new_networking(NULL, ip, TOX_PORT_DEFAULT);
292 ck_assert_msg(net != 0, "Failed to create Networking_Core"); 292 ck_assert_msg(net != 0, "Failed to create Networking_Core");
293 293
294 DHT *dht = new_DHT(net); 294 DHT *dht = new_DHT(NULL, net);
295 ck_assert_msg(dht != 0, "Failed to create DHT"); 295 ck_assert_msg(dht != 0, "Failed to create DHT");
296 296
297 IP_Port ip_port = { .ip = ip, .port = TOX_PORT_DEFAULT }; 297 IP_Port ip_port = { .ip = ip, .port = TOX_PORT_DEFAULT };
@@ -428,7 +428,7 @@ void test_list_main()
428 IP ip; 428 IP ip;
429 ip_init(&ip, 1); 429 ip_init(&ip, 1);
430 430
431 dhts[i] = new_DHT(new_networking(ip, DHT_DEFAULT_PORT + i)); 431 dhts[i] = new_DHT(NULL, new_networking(NULL, ip, DHT_DEFAULT_PORT + i));
432 ck_assert_msg(dhts[i] != 0, "Failed to create dht instances %u", i); 432 ck_assert_msg(dhts[i] != 0, "Failed to create dht instances %u", i);
433 ck_assert_msg(dhts[i]->net->port != DHT_DEFAULT_PORT + i, "Bound to wrong port"); 433 ck_assert_msg(dhts[i]->net->port != DHT_DEFAULT_PORT + i, "Bound to wrong port");
434 } 434 }
@@ -566,7 +566,7 @@ START_TEST(test_DHT_test)
566 IP ip; 566 IP ip;
567 ip_init(&ip, 1); 567 ip_init(&ip, 1);
568 568
569 dhts[i] = new_DHT(new_networking(ip, DHT_DEFAULT_PORT + i)); 569 dhts[i] = new_DHT(NULL, new_networking(NULL, ip, DHT_DEFAULT_PORT + i));
570 ck_assert_msg(dhts[i] != 0, "Failed to create dht instances %u", i); 570 ck_assert_msg(dhts[i] != 0, "Failed to create dht instances %u", i);
571 ck_assert_msg(dhts[i]->net->port != DHT_DEFAULT_PORT + i, "Bound to wrong port"); 571 ck_assert_msg(dhts[i]->net->port != DHT_DEFAULT_PORT + i, "Bound to wrong port");
572 } 572 }