summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--auto_tests/dht_test.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/auto_tests/dht_test.c b/auto_tests/dht_test.c
index 17f4563b..df9529c0 100644
--- a/auto_tests/dht_test.c
+++ b/auto_tests/dht_test.c
@@ -411,7 +411,7 @@ START_TEST(test_addto_lists_ipv6)
411} 411}
412END_TEST 412END_TEST
413 413
414#define DHT_DEFAULT_PORT (TOX_PORT_DEFAULT + 20) 414#define DHT_DEFAULT_PORT (TOX_PORT_DEFAULT + 1000)
415 415
416static void print_pk(uint8_t *public_key) 416static void print_pk(uint8_t *public_key)
417{ 417{
@@ -475,7 +475,8 @@ static void test_list_main(void)
475 475
476 dhts[i] = new_DHT(log, new_networking(log, ip, DHT_DEFAULT_PORT + i), true); 476 dhts[i] = new_DHT(log, new_networking(log, ip, DHT_DEFAULT_PORT + i), true);
477 ck_assert_msg(dhts[i] != nullptr, "Failed to create dht instances %u", i); 477 ck_assert_msg(dhts[i] != nullptr, "Failed to create dht instances %u", i);
478 ck_assert_msg(net_port(dhts[i]->net) != DHT_DEFAULT_PORT + i, "Bound to wrong port"); 478 ck_assert_msg(net_port(dhts[i]->net) != DHT_DEFAULT_PORT + i,
479 "Bound to wrong port: %d", net_port(dhts[i]->net));
479 } 480 }
480 481
481 for (j = 0; j < NUM_DHT; ++j) { 482 for (j = 0; j < NUM_DHT; ++j) {